| 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 COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ | 5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ |
| 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ | 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 ToolbarModelImpl(ToolbarModelDelegate* delegate, | 25 ToolbarModelImpl(ToolbarModelDelegate* delegate, |
| 26 size_t max_url_display_chars); | 26 size_t max_url_display_chars); |
| 27 ~ToolbarModelImpl() override; | 27 ~ToolbarModelImpl() override; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // ToolbarModel: | 30 // ToolbarModel: |
| 31 base::string16 GetFormattedURL(size_t* prefix_end) const override; | 31 base::string16 GetFormattedURL(size_t* prefix_end) const override; |
| 32 GURL GetURL() const override; | 32 GURL GetURL() const override; |
| 33 security_state::SecurityStateModel::SecurityLevel GetSecurityLevel( | 33 security_state::SecurityStateModel::SecurityLevel GetSecurityLevel( |
| 34 bool ignore_editing) const override; | 34 bool ignore_editing) const override; |
| 35 int GetIcon() const override; | |
| 36 gfx::VectorIconId GetVectorIcon() const override; | 35 gfx::VectorIconId GetVectorIcon() const override; |
| 37 base::string16 GetSecureVerboseText() const override; | 36 base::string16 GetSecureVerboseText() const override; |
| 38 base::string16 GetEVCertName() const override; | 37 base::string16 GetEVCertName() const override; |
| 39 bool ShouldDisplayURL() const override; | 38 bool ShouldDisplayURL() const override; |
| 40 | 39 |
| 41 ToolbarModelDelegate* delegate_; | 40 ToolbarModelDelegate* delegate_; |
| 42 const size_t max_url_display_chars_; | 41 const size_t max_url_display_chars_; |
| 43 | 42 |
| 44 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); | 43 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ | 46 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ |
| OLD | NEW |