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

Side by Side Diff: components/toolbar/toolbar_model_delegate.h

Issue 1652153003: Move toolbar_model_{impl,delegate}.{cc,h} to components/toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3
Patch Set: Add static_cast<int> to fix compilation warning on Win Created 4 years, 10 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/DEPS ('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 CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_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"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "components/security_state/security_state_model.h" 12 #include "components/security_state/security_state_model.h"
13 13
14 class GURL; 14 class GURL;
15 15
16 namespace content {
17 class WebContents;
18 }
19
20 namespace net { 16 namespace net {
21 class X509Certificate; 17 class X509Certificate;
22 } 18 }
23 19
24 // Delegate which is used by ToolbarModel class. 20 // Delegate which is used by ToolbarModel class.
25 class ToolbarModelDelegate { 21 class ToolbarModelDelegate {
26 public: 22 public:
27 using SecurityLevel = security_state::SecurityStateModel::SecurityLevel; 23 using SecurityLevel = security_state::SecurityStateModel::SecurityLevel;
28 24
29 // Returns the value to use for the Accept-Languages HTTP header when making 25 // Returns the value to use for the Accept-Languages HTTP header when making
(...skipping 24 matching lines...) Expand all
54 // page has a security level of |security_level|. 50 // page has a security level of |security_level|.
55 virtual base::string16 GetSearchTerms(SecurityLevel security_level) const = 0; 51 virtual base::string16 GetSearchTerms(SecurityLevel security_level) const = 0;
56 52
57 // Returns the certificate for the current navigation entry. 53 // Returns the certificate for the current navigation entry.
58 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; 54 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0;
59 55
60 protected: 56 protected:
61 virtual ~ToolbarModelDelegate() {} 57 virtual ~ToolbarModelDelegate() {}
62 }; 58 };
63 59
64 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 60 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/toolbar/DEPS ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698