| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_ |
| 6 #define CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
| 11 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_service.h" | 11 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher_service.h" |
| 12 #include "chrome/common/instant_types.h" | 12 #include "chrome/common/instant_types.h" |
| 13 #include "components/omnibox/browser/omnibox_client.h" | 13 #include "components/omnibox/browser/omnibox_client.h" |
| 14 | 14 |
| 15 class ChromeOmniboxEditController; | 15 class ChromeOmniboxEditController; |
| 16 class OmniboxEditController; | 16 class OmniboxEditController; |
| 17 class Profile; | 17 class Profile; |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 class NavigationController; | 20 class NavigationController; |
| 21 } | 21 } |
| 22 | 22 |
| 23 class ChromeOmniboxClient : public OmniboxClient { | 23 class ChromeOmniboxClient : public OmniboxClient { |
| 24 public: | 24 public: |
| 25 ChromeOmniboxClient(OmniboxEditController* controller, Profile* profile); | 25 ChromeOmniboxClient(OmniboxEditController* controller, Profile* profile); |
| 26 ~ChromeOmniboxClient() override; | 26 ~ChromeOmniboxClient() override; |
| 27 | 27 |
| 28 // OmniboxClient. | 28 // OmniboxClient. |
| 29 scoped_ptr<AutocompleteProviderClient> | 29 std::unique_ptr<AutocompleteProviderClient> CreateAutocompleteProviderClient() |
| 30 CreateAutocompleteProviderClient() override; | 30 override; |
| 31 scoped_ptr<OmniboxNavigationObserver> CreateOmniboxNavigationObserver( | 31 std::unique_ptr<OmniboxNavigationObserver> CreateOmniboxNavigationObserver( |
| 32 const base::string16& text, | 32 const base::string16& text, |
| 33 const AutocompleteMatch& match, | 33 const AutocompleteMatch& match, |
| 34 const AutocompleteMatch& alternate_nav_match) override; | 34 const AutocompleteMatch& alternate_nav_match) override; |
| 35 bool CurrentPageExists() const override; | 35 bool CurrentPageExists() const override; |
| 36 const GURL& GetURL() const override; | 36 const GURL& GetURL() const override; |
| 37 const base::string16& GetTitle() const override; | 37 const base::string16& GetTitle() const override; |
| 38 gfx::Image GetFavicon() const override; | 38 gfx::Image GetFavicon() const override; |
| 39 bool IsInstantNTP() const override; | 39 bool IsInstantNTP() const override; |
| 40 bool IsSearchResultsPage() const override; | 40 bool IsSearchResultsPage() const override; |
| 41 bool IsLoading() const override; | 41 bool IsLoading() const override; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 ChromeOmniboxEditController* controller_; | 89 ChromeOmniboxEditController* controller_; |
| 90 Profile* profile_; | 90 Profile* profile_; |
| 91 ChromeAutocompleteSchemeClassifier scheme_classifier_; | 91 ChromeAutocompleteSchemeClassifier scheme_classifier_; |
| 92 BitmapFetcherService::RequestId request_id_; | 92 BitmapFetcherService::RequestId request_id_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(ChromeOmniboxClient); | 94 DISALLOW_COPY_AND_ASSIGN(ChromeOmniboxClient); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 #endif // CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_ | 97 #endif // CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_CLIENT_H_ |
| OLD | NEW |