Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 // user edits that may be in progress. | 44 // user edits that may be in progress. |
| 45 virtual SecurityLevel GetSecurityLevel() const = 0; | 45 virtual SecurityLevel GetSecurityLevel() const = 0; |
| 46 | 46 |
| 47 // Returns the certificate for the current navigation entry. | 47 // Returns the certificate for the current navigation entry. |
| 48 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; | 48 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; |
| 49 | 49 |
| 50 // Returns true if the current page fails the malware check. | 50 // Returns true if the current page fails the malware check. |
| 51 virtual bool FailsMalwareCheck() const = 0; | 51 virtual bool FailsMalwareCheck() const = 0; |
| 52 | 52 |
| 53 // Returns the id of the icon to show to the left of the address, or | 53 // Returns the id of the icon to show to the left of the address, or |
| 54 // gfx::VectorIconId::VECTOR_ICON_NONE if the icon should be selected by the | 54 // gfx::kNoneIcon if the icon should be selected by the caller. This is useful |
|
Evan Stade
2017/06/06 21:28:57
are you sure it doesn't return null?
tdanderson
2017/06/07 15:55:55
Done.
| |
| 55 // caller. This is useful for associating particular URLs with particular | 55 // for associating particular URLs with particular schemes without importing |
| 56 // schemes without importing knowledge of those schemes into this component. | 56 // knowledge of those schemes into this component. |
| 57 virtual const gfx::VectorIcon* GetVectorIconOverride() const = 0; | 57 virtual const gfx::VectorIcon* GetVectorIconOverride() const = 0; |
| 58 | 58 |
| 59 protected: | 59 protected: |
| 60 virtual ~ToolbarModelDelegate() {} | 60 virtual ~ToolbarModelDelegate() {} |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ | 63 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ |
| OLD | NEW |