OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_IOS_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_IOS_H_ |
6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_IOS_H_ | 6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_IOS_H_ |
7 | 7 |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/toolbar/toolbar_model_delegate.h" | 10 #include "components/toolbar/toolbar_model_delegate.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // ToolbarModelDelegate implementation: | 36 // ToolbarModelDelegate implementation: |
37 base::string16 FormattedStringWithEquivalentMeaning( | 37 base::string16 FormattedStringWithEquivalentMeaning( |
38 const GURL& url, | 38 const GURL& url, |
39 const base::string16& formatted_url) const override; | 39 const base::string16& formatted_url) const override; |
40 bool GetURL(GURL* url) const override; | 40 bool GetURL(GURL* url) const override; |
41 bool ShouldDisplayURL() const override; | 41 bool ShouldDisplayURL() const override; |
42 SecurityLevel GetSecurityLevel() const override; | 42 SecurityLevel GetSecurityLevel() const override; |
43 scoped_refptr<net::X509Certificate> GetCertificate() const override; | 43 scoped_refptr<net::X509Certificate> GetCertificate() const override; |
44 bool FailsMalwareCheck() const override; | 44 bool FailsMalwareCheck() const override; |
45 const gfx::VectorIcon* GetVectorIconOverride() const override; | 45 const gfx::VectorIcon* GetVectorIconOverride() const override; |
| 46 bool IsOfflinePage() const override; |
46 | 47 |
47 WebStateList* web_state_list_; // weak | 48 WebStateList* web_state_list_; // weak |
48 | 49 |
49 DISALLOW_COPY_AND_ASSIGN(ToolbarModelDelegateIOS); | 50 DISALLOW_COPY_AND_ASSIGN(ToolbarModelDelegateIOS); |
50 }; | 51 }; |
51 | 52 |
52 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_IOS_H_ | 53 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_DELEGATE_IOS_H_ |
OLD | NEW |