| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 nullptr | 53 // Returns the id of the icon to show to the left of the address, or nullptr |
| 54 // if the icon should be selected by the caller. This is useful for | 54 // if the icon should be selected by the caller. This is useful for |
| 55 // associating particular URLs with particular schemes without importing | 55 // associating particular URLs with particular schemes without importing |
| 56 // 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 // Returns whether the page is an offline page, sourced from a cache of |
| 60 // previously-downloaded content. |
| 61 virtual bool IsOfflinePage() const = 0; |
| 62 |
| 59 protected: | 63 protected: |
| 60 virtual ~ToolbarModelDelegate() {} | 64 virtual ~ToolbarModelDelegate() {} |
| 61 }; | 65 }; |
| 62 | 66 |
| 63 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ | 67 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ |
| OLD | NEW |