| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/toolbar/toolbar_model_delegate.h" | 9 #include "components/toolbar/toolbar_model_delegate.h" |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 base::string16 FormattedStringWithEquivalentMeaning( | 31 base::string16 FormattedStringWithEquivalentMeaning( |
| 32 const GURL& url, | 32 const GURL& url, |
| 33 const base::string16& formatted_url) const override; | 33 const base::string16& formatted_url) const override; |
| 34 bool GetURL(GURL* url) const override; | 34 bool GetURL(GURL* url) const override; |
| 35 bool ShouldDisplayURL() const override; | 35 bool ShouldDisplayURL() const override; |
| 36 SecurityLevel GetSecurityLevel() const override; | 36 SecurityLevel GetSecurityLevel() const override; |
| 37 scoped_refptr<net::X509Certificate> GetCertificate() const override; | 37 scoped_refptr<net::X509Certificate> GetCertificate() const override; |
| 38 bool FailsMalwareCheck() const override; | 38 bool FailsMalwareCheck() const override; |
| 39 gfx::VectorIconId GetVectorIconOverride() const override; | 39 const gfx::VectorIcon* GetVectorIconOverride() const override; |
| 40 | 40 |
| 41 // Returns the navigation controller used to retrieve the navigation entry | 41 // Returns the navigation controller used to retrieve the navigation entry |
| 42 // from which the states are retrieved. If this returns null, default values | 42 // from which the states are retrieved. If this returns null, default values |
| 43 // are used. | 43 // are used. |
| 44 content::NavigationController* GetNavigationController() const; | 44 content::NavigationController* GetNavigationController() const; |
| 45 | 45 |
| 46 // Helper method to extract the navigation entry from the navigation | 46 // Helper method to extract the navigation entry from the navigation |
| 47 // controller. | 47 // controller. |
| 48 content::NavigationEntry* GetNavigationEntry() const; | 48 content::NavigationEntry* GetNavigationEntry() const; |
| 49 | 49 |
| 50 // Helper method to extract the profile from the navigation controller. | 50 // Helper method to extract the profile from the navigation controller. |
| 51 Profile* GetProfile() const; | 51 Profile* GetProfile() const; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModelDelegate); | 53 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModelDelegate); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ | 56 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ |
| OLD | NEW |