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

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

Issue 23522025: InstantExtended: add a finch flag to disable Instant Extended on SRP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests. Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SEARCH_SEARCH_H_ 5 #ifndef CHROME_BROWSER_SEARCH_SEARCH_H_
6 #define CHROME_BROWSER_SEARCH_SEARCH_H_ 6 #define CHROME_BROWSER_SEARCH_SEARCH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // Exposed for testing. 130 // Exposed for testing.
131 bool ShouldUseCacheableNTP(); 131 bool ShouldUseCacheableNTP();
132 132
133 // Returns true if the Instant NTP should be shown and false if not. 133 // Returns true if the Instant NTP should be shown and false if not.
134 bool ShouldShowInstantNTP(); 134 bool ShouldShowInstantNTP();
135 135
136 // Returns true if the recent tabs link should be shown on the local NTP in 136 // Returns true if the recent tabs link should be shown on the local NTP in
137 // field trials. 137 // field trials.
138 bool ShouldShowRecentTabsOnNTP(); 138 bool ShouldShowRecentTabsOnNTP();
139 139
140 // Returns true if Instant Extended should be disabled on the search results
141 // page.
142 bool ShouldSuppressInstantExtendedOnSRP();
143
140 // Returns true if |my_url| matches |other_url|. 144 // Returns true if |my_url| matches |other_url|.
141 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url); 145 bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url);
142 146
143 // Transforms the input |url| into its "effective URL". The returned URL 147 // Transforms the input |url| into its "effective URL". The returned URL
144 // facilitates grouping process-per-site. The |url| is transformed, for 148 // facilitates grouping process-per-site. The |url| is transformed, for
145 // example, from 149 // example, from
146 // 150 //
147 // https://www.google.com/search?espv=1&q=tractors 151 // https://www.google.com/search?espv=1&q=tractors
148 // 152 //
149 // to the privileged URL 153 // to the privileged URL
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 bool default_value, 238 bool default_value,
235 const FieldTrialFlags& flags); 239 const FieldTrialFlags& flags);
236 240
237 // Let tests reset the gate that prevents metrics from being sent more than 241 // Let tests reset the gate that prevents metrics from being sent more than
238 // once. 242 // once.
239 void ResetInstantExtendedOptInStateGateForTest(); 243 void ResetInstantExtendedOptInStateGateForTest();
240 244
241 } // namespace chrome 245 } // namespace chrome
242 246
243 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 247 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698