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

Side by Side Diff: chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h

Issue 2232863002: Remove search::GetSearchTerms since it always returns empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_query_extract
Patch Set: Android Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/toolbar/toolbar_model_delegate.h" 9 #include "components/toolbar/toolbar_model_delegate.h"
10 10
(...skipping 16 matching lines...) Expand all
27 ChromeToolbarModelDelegate(); 27 ChromeToolbarModelDelegate();
28 ~ChromeToolbarModelDelegate() override; 28 ~ChromeToolbarModelDelegate() override;
29 29
30 private: 30 private:
31 base::string16 FormattedStringWithEquivalentMeaning( 31 base::string16 FormattedStringWithEquivalentMeaning(
32 const GURL& url, 32 const GURL& url,
33 const base::string16& formatted_url) const override; 33 const base::string16& formatted_url) const override;
34 bool GetURL(GURL* url) const override; 34 bool GetURL(GURL* url) const override;
35 bool ShouldDisplayURL() const override; 35 bool ShouldDisplayURL() const override;
36 SecurityLevel GetSecurityLevel() const override; 36 SecurityLevel GetSecurityLevel() const override;
37 base::string16 GetSearchTerms(SecurityLevel security_level) const override;
38 scoped_refptr<net::X509Certificate> GetCertificate() const override; 37 scoped_refptr<net::X509Certificate> GetCertificate() const override;
39 38
40 // Returns the navigation controller used to retrieve the navigation entry 39 // Returns the navigation controller used to retrieve the navigation entry
41 // from which the states are retrieved. If this returns null, default values 40 // from which the states are retrieved. If this returns null, default values
42 // are used. 41 // are used.
43 content::NavigationController* GetNavigationController() const; 42 content::NavigationController* GetNavigationController() const;
44 43
45 // Helper method to extract the navigation entry from the navigation 44 // Helper method to extract the navigation entry from the navigation
46 // controller. 45 // controller.
47 content::NavigationEntry* GetNavigationEntry() const; 46 content::NavigationEntry* GetNavigationEntry() const;
48 47
49 // Helper method to extract the profile from the navigation controller. 48 // Helper method to extract the profile from the navigation controller.
50 Profile* GetProfile() const; 49 Profile* GetProfile() const;
51 50
52 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModelDelegate); 51 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModelDelegate);
53 }; 52 };
54 53
55 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ 54 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_tab_helper.cc ('k') | chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698