Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1070)

Side by Side Diff: chrome/browser/ui/omnibox/chrome_omnibox_client.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc ('k') | chrome/browser/ui/omnibox/chrome_omnibox_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698