OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" | 12 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" |
13 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h" | 13 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h" |
14 #include "chrome/browser/ui/webui/omnibox/omnibox.mojom.h" | 14 #include "chrome/browser/ui/webui/omnibox/omnibox.mojom.h" |
15 #include "components/autocomplete/autocomplete_input.h" | 15 #include "components/omnibox/autocomplete_input.h" |
16 #include "components/autocomplete/autocomplete_match.h" | 16 #include "components/omnibox/autocomplete_match.h" |
17 | 17 |
18 class AutocompleteController; | 18 class AutocompleteController; |
19 class Profile; | 19 class Profile; |
20 | 20 |
21 // Implementation of OmniboxUIHandlerMojo. StartOmniboxQuery() calls to a | 21 // Implementation of OmniboxUIHandlerMojo. StartOmniboxQuery() calls to a |
22 // private AutocompleteController. It also listens for updates from the | 22 // private AutocompleteController. It also listens for updates from the |
23 // AutocompleteController to OnResultChanged() and passes those results to | 23 // AutocompleteController to OnResultChanged() and passes those results to |
24 // the OmniboxPage. | 24 // the OmniboxPage. |
25 class OmniboxUIHandler : public AutocompleteControllerDelegate, | 25 class OmniboxUIHandler : public AutocompleteControllerDelegate, |
26 public mojo::InterfaceImpl<OmniboxUIHandlerMojo>, | 26 public mojo::InterfaceImpl<OmniboxUIHandlerMojo>, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // The input used when starting the AutocompleteController. | 66 // The input used when starting the AutocompleteController. |
67 AutocompleteInput input_; | 67 AutocompleteInput input_; |
68 | 68 |
69 // The Profile* handed to us in our constructor. | 69 // The Profile* handed to us in our constructor. |
70 Profile* profile_; | 70 Profile* profile_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(OmniboxUIHandler); | 72 DISALLOW_COPY_AND_ASSIGN(OmniboxUIHandler); |
73 }; | 73 }; |
74 | 74 |
75 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ | 75 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ |
OLD | NEW |