| 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" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "components/security_state/security_state_model.h" | 12 #include "components/security_state/core/security_state_model.h" |
| 13 | 13 |
| 14 class GURL; | 14 class GURL; |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 class X509Certificate; | 17 class X509Certificate; |
| 18 } | 18 } |
| 19 | 19 |
| 20 // Delegate which is used by ToolbarModel class. | 20 // Delegate which is used by ToolbarModel class. |
| 21 class ToolbarModelDelegate { | 21 class ToolbarModelDelegate { |
| 22 public: | 22 public: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 44 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; | 44 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; |
| 45 | 45 |
| 46 // Returns true if the current page fails the malware check. | 46 // Returns true if the current page fails the malware check. |
| 47 virtual bool FailsMalwareCheck() const = 0; | 47 virtual bool FailsMalwareCheck() const = 0; |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 virtual ~ToolbarModelDelegate() {} | 50 virtual ~ToolbarModelDelegate() {} |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ | 53 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ |
| OLD | NEW |