| 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_PAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_PAGE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_PAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_PAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // OmniboxPageHandler is deleted when the supplied pipe is destroyed. | 33 // OmniboxPageHandler is deleted when the supplied pipe is destroyed. |
| 34 OmniboxPageHandler(Profile* profile, | 34 OmniboxPageHandler(Profile* profile, |
| 35 mojo::InterfaceRequest<mojom::OmniboxPageHandler> request); | 35 mojo::InterfaceRequest<mojom::OmniboxPageHandler> request); |
| 36 ~OmniboxPageHandler() override; | 36 ~OmniboxPageHandler() override; |
| 37 | 37 |
| 38 // AutocompleteControllerDelegate overrides: | 38 // AutocompleteControllerDelegate overrides: |
| 39 void OnResultChanged(bool default_match_changed) override; | 39 void OnResultChanged(bool default_match_changed) override; |
| 40 | 40 |
| 41 // mojom::OmniboxPageHandler overrides: | 41 // mojom::OmniboxPageHandler overrides: |
| 42 void SetClientPage(mojom::OmniboxPagePtr page) override; | 42 void SetClientPage(mojom::OmniboxPagePtr page) override; |
| 43 void StartOmniboxQuery(const mojo::String& input_string, | 43 void StartOmniboxQuery(const std::string& input_string, |
| 44 int32_t cursor_position, | 44 int32_t cursor_position, |
| 45 bool prevent_inline_autocomplete, | 45 bool prevent_inline_autocomplete, |
| 46 bool prefer_keyword, | 46 bool prefer_keyword, |
| 47 int32_t page_classification) override; | 47 int32_t page_classification) override; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 // Looks up whether the hostname is a typed host (i.e., has received | 50 // Looks up whether the hostname is a typed host (i.e., has received |
| 51 // typed visits). Return true if the lookup succeeded; if so, the | 51 // typed visits). Return true if the lookup succeeded; if so, the |
| 52 // value of |is_typed_host| is set appropriately. | 52 // value of |is_typed_host| is set appropriately. |
| 53 bool LookupIsTypedHost(const base::string16& host, bool* is_typed_host) const; | 53 bool LookupIsTypedHost(const base::string16& host, bool* is_typed_host) const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 | 73 |
| 74 // The Profile* handed to us in our constructor. | 74 // The Profile* handed to us in our constructor. |
| 75 Profile* profile_; | 75 Profile* profile_; |
| 76 | 76 |
| 77 mojo::Binding<mojom::OmniboxPageHandler> binding_; | 77 mojo::Binding<mojom::OmniboxPageHandler> binding_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(OmniboxPageHandler); | 79 DISALLOW_COPY_AND_ASSIGN(OmniboxPageHandler); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_PAGE_HANDLER_H_ | 82 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_PAGE_HANDLER_H_ |
| OLD | NEW |