| 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 22 matching lines...) Expand all Loading... |
| 33 virtual bool GetURL(GURL* url) const = 0; | 33 virtual bool GetURL(GURL* url) const = 0; |
| 34 | 34 |
| 35 // Returns whether the URL for the current navigation entry should be | 35 // Returns whether the URL for the current navigation entry should be |
| 36 // in the location bar. | 36 // in the location bar. |
| 37 virtual bool ShouldDisplayURL() const = 0; | 37 virtual bool ShouldDisplayURL() const = 0; |
| 38 | 38 |
| 39 // Returns the underlying security level of the page without regard to any | 39 // Returns the underlying security level of the page without regard to any |
| 40 // user edits that may be in progress. | 40 // user edits that may be in progress. |
| 41 virtual SecurityLevel GetSecurityLevel() const = 0; | 41 virtual SecurityLevel GetSecurityLevel() const = 0; |
| 42 | 42 |
| 43 // Returns search terms as in search::GetSearchTerms() if such terms should | |
| 44 // appear in the omnibox (i.e. the page is sufficiently secure, search term | |
| 45 // replacement is enabled, editing is not in progress, etc.) given that the | |
| 46 // page has a security level of |security_level|. | |
| 47 virtual base::string16 GetSearchTerms(SecurityLevel security_level) const = 0; | |
| 48 | |
| 49 // Returns the certificate for the current navigation entry. | 43 // Returns the certificate for the current navigation entry. |
| 50 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; | 44 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; |
| 51 | 45 |
| 52 protected: | 46 protected: |
| 53 virtual ~ToolbarModelDelegate() {} | 47 virtual ~ToolbarModelDelegate() {} |
| 54 }; | 48 }; |
| 55 | 49 |
| 56 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ | 50 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ |
| OLD | NEW |