Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: chrome/browser/ui/toolbar/toolbar_model_impl.h

Issue 1260033003: Partially componentize //chrome/browser/search/search.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool ShouldDisplayURL() const override; 49 bool ShouldDisplayURL() const override;
50 50
51 // Returns the navigation controller used to retrieve the navigation entry 51 // Returns the navigation controller used to retrieve the navigation entry
52 // from which the states are retrieved. 52 // from which the states are retrieved.
53 // If this returns NULL, default values are used. 53 // If this returns NULL, default values are used.
54 content::NavigationController* GetNavigationController() const; 54 content::NavigationController* GetNavigationController() const;
55 55
56 // Helper method to extract the profile from the navigation controller. 56 // Helper method to extract the profile from the navigation controller.
57 Profile* GetProfile() const; 57 Profile* GetProfile() const;
58 58
59 // Returns search terms as in chrome::GetSearchTerms() if such terms should 59 // Returns search terms as in search::GetSearchTerms() if such terms should
60 // appear in the omnibox (i.e. the page is sufficiently secure, search term 60 // appear in the omnibox (i.e. the page is sufficiently secure, search term
61 // replacement is enabled, editing is not in progress, etc.). If 61 // replacement is enabled, editing is not in progress, etc.). If
62 // |ignore_editing| is true, the "editing not in progress" check is skipped. 62 // |ignore_editing| is true, the "editing not in progress" check is skipped.
63 base::string16 GetSearchTerms(bool ignore_editing) const; 63 base::string16 GetSearchTerms(bool ignore_editing) const;
64 64
65 ToolbarModelDelegate* delegate_; 65 ToolbarModelDelegate* delegate_;
66 66
67 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); 67 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl);
68 }; 68 };
69 69
70 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 70 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698