| OLD | NEW |
| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ssl/security_state_model.h" | 9 #include "components/security_state/security_state_model.h" |
| 10 #include "components/toolbar/toolbar_model.h" | 10 #include "components/toolbar/toolbar_model.h" |
| 11 | 11 |
| 12 // This class is a //chrome-specific extension of the ToolbarModel interface. | 12 // This class is a //chrome-specific extension of the ToolbarModel interface. |
| 13 // TODO(blundell): If SecurityStateModel::SecurityLevel gets componentized, | 13 // TODO(blundell): Now that SecurityStateModel::SecurityLevel is componentized, |
| 14 // GetSecurityLevel() can be folded into ToolbarModel and this class can go | 14 // GetSecurityLevel() can be folded into ToolbarModel and this class can go |
| 15 // away. crbug.com/515071 | 15 // away. crbug.com/515071 |
| 16 class ChromeToolbarModel : public ToolbarModel { | 16 class ChromeToolbarModel : public ToolbarModel { |
| 17 public: | 17 public: |
| 18 ~ChromeToolbarModel() override; | 18 ~ChromeToolbarModel() override; |
| 19 | 19 |
| 20 // Returns the security level that the toolbar should display. If | 20 // Returns the security level that the toolbar should display. If |
| 21 // |ignore_editing| is true, the result reflects the underlying state of the | 21 // |ignore_editing| is true, the result reflects the underlying state of the |
| 22 // page without regard to any user edits that may be in progress in the | 22 // page without regard to any user edits that may be in progress in the |
| 23 // omnibox. | 23 // omnibox. |
| 24 virtual SecurityStateModel::SecurityLevel GetSecurityLevel( | 24 virtual security_state::SecurityStateModel::SecurityLevel GetSecurityLevel( |
| 25 bool ignore_editing) const = 0; | 25 bool ignore_editing) const = 0; |
| 26 | 26 |
| 27 protected: | 27 protected: |
| 28 ChromeToolbarModel(); | 28 ChromeToolbarModel(); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModel); | 31 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModel); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_ | 34 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_ |
| OLD | NEW |