Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / home_page_overlay_handler.h
blob36fce27461d28e1b96dd0e49d68da13807dfc15a
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_HOME_PAGE_OVERLAY_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_HOME_PAGE_OVERLAY_HANDLER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/ui/webui/options/options_ui.h"
12 #include "components/omnibox/browser/autocomplete_controller_delegate.h"
14 class AutocompleteController;
16 namespace base {
17 class DictionaryValue;
18 class ListValue;
21 namespace options {
23 class HomePageOverlayHandler : public OptionsPageUIHandler,
24 public AutocompleteControllerDelegate {
25 public:
26 HomePageOverlayHandler();
27 ~HomePageOverlayHandler() override;
29 // OptionsPageUIHandler implementation
30 void GetLocalizedValues(base::DictionaryValue*) override;
31 void InitializeHandler() override;
32 void RegisterMessages() override;
34 // AutocompleteControllerDelegate implementation.
35 void OnResultChanged(bool default_match_changed) override;
37 private:
38 void RequestAutocompleteSuggestions(const base::ListValue* args);
40 scoped_ptr<AutocompleteController> autocomplete_controller_;
42 DISALLOW_COPY_AND_ASSIGN(HomePageOverlayHandler);
45 } // namespace options
47 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_HOME_PAGE_OVERLAY_HANDLER_H_