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

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

Issue 1314843007: Refactor connection_security into SecurityStateModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: create SecurityStateModel for chromeos login webview Created 5 years, 3 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 | « chrome/browser/ui/tab_helpers.cc ('k') | chrome/browser/ui/toolbar/test_toolbar_model.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_
7 7
8 #include "chrome/browser/ssl/connection_security.h" 8 #include "chrome/browser/ssl/security_state_model.h"
9 #include "components/toolbar/toolbar_model.h" 9 #include "components/toolbar/toolbar_model.h"
10 10
11 // This class is a //chrome-specific extension of the ToolbarModel interface. 11 // This class is a //chrome-specific extension of the ToolbarModel interface.
12 // TODO(blundell): If connection_security::SecurityLevel gets componentized, 12 // TODO(blundell): If SecurityStateModel::SecurityLevel gets componentized,
13 // GetSecurityLevel() can be folded into ToolbarModel and this class can go 13 // GetSecurityLevel() can be folded into ToolbarModel and this class can go
14 // away. crbug.com/515071 14 // away. crbug.com/515071
15 class ChromeToolbarModel : public ToolbarModel { 15 class ChromeToolbarModel : public ToolbarModel {
16 public: 16 public:
17 ~ChromeToolbarModel() override; 17 ~ChromeToolbarModel() override;
18 18
19 // Returns the security level that the toolbar should display. If 19 // Returns the security level that the toolbar should display. If
20 // |ignore_editing| is true, the result reflects the underlying state of the 20 // |ignore_editing| is true, the result reflects the underlying state of the
21 // page without regard to any user edits that may be in progress in the 21 // page without regard to any user edits that may be in progress in the
22 // omnibox. 22 // omnibox.
23 virtual connection_security::SecurityLevel GetSecurityLevel( 23 virtual SecurityStateModel::SecurityLevel GetSecurityLevel(
24 bool ignore_editing) const = 0; 24 bool ignore_editing) const = 0;
25 25
26 protected: 26 protected:
27 ChromeToolbarModel(); 27 ChromeToolbarModel();
28 28
29 private: 29 private:
30 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModel); 30 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModel);
31 }; 31 };
32 32
33 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_ 33 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_helpers.cc ('k') | chrome/browser/ui/toolbar/test_toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698