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 CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int GetIconForSecurityLevel(connection_security::SecurityLevel level) const; | 51 int GetIconForSecurityLevel(connection_security::SecurityLevel level) const; |
52 | 52 |
53 // Returns the navigation controller used to retrieve the navigation entry | 53 // Returns the navigation controller used to retrieve the navigation entry |
54 // from which the states are retrieved. | 54 // from which the states are retrieved. |
55 // If this returns NULL, default values are used. | 55 // If this returns NULL, default values are used. |
56 content::NavigationController* GetNavigationController() const; | 56 content::NavigationController* GetNavigationController() const; |
57 | 57 |
58 // Helper method to extract the profile from the navigation controller. | 58 // Helper method to extract the profile from the navigation controller. |
59 Profile* GetProfile() const; | 59 Profile* GetProfile() const; |
60 | 60 |
61 // Returns search terms as in chrome::GetSearchTerms() if such terms should | 61 // Returns search terms as in search::GetSearchTerms() if such terms should |
62 // appear in the omnibox (i.e. the page is sufficiently secure, search term | 62 // appear in the omnibox (i.e. the page is sufficiently secure, search term |
63 // replacement is enabled, editing is not in progress, etc.). If | 63 // replacement is enabled, editing is not in progress, etc.). If |
64 // |ignore_editing| is true, the "editing not in progress" check is skipped. | 64 // |ignore_editing| is true, the "editing not in progress" check is skipped. |
65 base::string16 GetSearchTerms(bool ignore_editing) const; | 65 base::string16 GetSearchTerms(bool ignore_editing) const; |
66 | 66 |
67 ToolbarModelDelegate* delegate_; | 67 ToolbarModelDelegate* delegate_; |
68 | 68 |
69 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); | 69 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); |
70 }; | 70 }; |
71 | 71 |
72 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ | 72 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ |
OLD | NEW |