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

Side by Side Diff: chrome/browser/ui/search/search_tab_helper.h

Issue 2211533004: Remove SearchTabHelper::IsSearchResultsPage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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_SEARCH_SEARCH_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Tells the page that the user pressed Enter in the omnibox. 78 // Tells the page that the user pressed Enter in the omnibox.
79 void Submit(const base::string16& text, 79 void Submit(const base::string16& text,
80 const EmbeddedSearchRequestParams& params); 80 const EmbeddedSearchRequestParams& params);
81 81
82 // Called when the tab corresponding to |this| instance is activated. 82 // Called when the tab corresponding to |this| instance is activated.
83 void OnTabActivated(); 83 void OnTabActivated();
84 84
85 // Called when the tab corresponding to |this| instance is deactivated. 85 // Called when the tab corresponding to |this| instance is deactivated.
86 void OnTabDeactivated(); 86 void OnTabDeactivated();
87 87
88 // Returns true if the underlying page is a search results page.
89 bool IsSearchResultsPage();
90
91 void set_delegate(SearchTabHelperDelegate* delegate) { delegate_ = delegate; } 88 void set_delegate(SearchTabHelperDelegate* delegate) { delegate_ = delegate; }
92 89
93 private: 90 private:
94 friend class content::WebContentsUserData<SearchTabHelper>; 91 friend class content::WebContentsUserData<SearchTabHelper>;
95 friend class InstantTabTest; 92 friend class InstantTabTest;
96 friend class SearchIPCRouterPolicyTest; 93 friend class SearchIPCRouterPolicyTest;
97 friend class SearchIPCRouterTest; 94 friend class SearchIPCRouterTest;
98 friend class SearchTabHelperPrerenderTest; 95 friend class SearchTabHelperPrerenderTest;
99 96
100 FRIEND_TEST_ALL_PREFIXES(SearchTabHelperTest, 97 FRIEND_TEST_ALL_PREFIXES(SearchTabHelperTest,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 196
200 // Delegate for notifying our owner about the SearchTabHelper state. Not owned 197 // Delegate for notifying our owner about the SearchTabHelper state. Not owned
201 // by us. 198 // by us.
202 // NULL on iOS and Android because they don't use the Instant framework. 199 // NULL on iOS and Android because they don't use the Instant framework.
203 SearchTabHelperDelegate* delegate_; 200 SearchTabHelperDelegate* delegate_;
204 201
205 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); 202 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper);
206 }; 203 };
207 204
208 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ 205 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_search_prerenderer.cc ('k') | chrome/browser/ui/search/search_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698