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

Side by Side Diff: components/toolbar/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
« no previous file with comments | « components/toolbar/toolbar_model.cc ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 22 matching lines...) Expand all
33 virtual bool GetURL(GURL* url) const = 0; 33 virtual bool GetURL(GURL* url) const = 0;
34 34
35 // Returns whether the URL for the current navigation entry should be 35 // Returns whether the URL for the current navigation entry should be
36 // in the location bar. 36 // in the location bar.
37 virtual bool ShouldDisplayURL() const = 0; 37 virtual bool ShouldDisplayURL() const = 0;
38 38
39 // Returns the underlying security level of the page without regard to any 39 // Returns the underlying security level of the page without regard to any
40 // user edits that may be in progress. 40 // user edits that may be in progress.
41 virtual SecurityLevel GetSecurityLevel() const = 0; 41 virtual SecurityLevel GetSecurityLevel() const = 0;
42 42
43 // Returns search terms as in search::GetSearchTerms() if such terms should
44 // appear in the omnibox (i.e. the page is sufficiently secure, search term
45 // replacement is enabled, editing is not in progress, etc.) given that the
46 // page has a security level of |security_level|.
47 virtual base::string16 GetSearchTerms(SecurityLevel security_level) const = 0;
48
49 // Returns the certificate for the current navigation entry. 43 // Returns the certificate for the current navigation entry.
50 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; 44 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0;
51 45
52 protected: 46 protected:
53 virtual ~ToolbarModelDelegate() {} 47 virtual ~ToolbarModelDelegate() {}
54 }; 48 };
55 49
56 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 50 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/toolbar/toolbar_model.cc ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698