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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_
8 #include "chrome/browser/ssl/connection_security.h"
9 #include "components/toolbar/toolbar_model.h"
11 // This class is a //chrome-specific extension of the ToolbarModel interface.
12 // TODO(blundell): If connection_security::SecurityLevel gets componentized,
13 // GetSecurityLevel() can be folded into ToolbarModel and this class can go
14 // away. crbug.com/515071
15 class ChromeToolbarModel
: public ToolbarModel
{
17 ~ChromeToolbarModel() override
;
19 // Returns the security level that the toolbar should display. If
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
23 virtual connection_security::SecurityLevel
GetSecurityLevel(
24 bool ignore_editing
) const = 0;
30 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModel
);
33 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_H_