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

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

Issue 845973005: [New Tab Page] Change the mechanism to intercept online NTP errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove file Created 5 years, 11 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_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 12 matching lines...) Expand all
23 class NavigationEntry; 23 class NavigationEntry;
24 class WebContents; 24 class WebContents;
25 } 25 }
26 26
27 namespace user_prefs { 27 namespace user_prefs {
28 class PrefRegistrySyncable; 28 class PrefRegistrySyncable;
29 } 29 }
30 30
31 namespace chrome { 31 namespace chrome {
32 32
33 // For reporting Cacheable NTP navigations.
34 enum CacheableNTPLoad {
35 CACHEABLE_NTP_LOAD_FAILED = 0,
36 CACHEABLE_NTP_LOAD_SUCCEEDED = 1,
37 CACHEABLE_NTP_LOAD_MAX = 2
38 };
39
33 enum OptInState { 40 enum OptInState {
34 // The user has not manually opted in/out of InstantExtended. 41 // The user has not manually opted in/out of InstantExtended.
35 INSTANT_EXTENDED_NOT_SET, 42 INSTANT_EXTENDED_NOT_SET,
36 // The user has opted-in to InstantExtended. 43 // The user has opted-in to InstantExtended.
37 INSTANT_EXTENDED_OPT_IN, 44 INSTANT_EXTENDED_OPT_IN,
38 // The user has opted-out of InstantExtended. 45 // The user has opted-out of InstantExtended.
39 INSTANT_EXTENDED_OPT_OUT, 46 INSTANT_EXTENDED_OPT_OUT,
40 INSTANT_EXTENDED_OPT_IN_STATE_ENUM_COUNT, 47 INSTANT_EXTENDED_OPT_IN_STATE_ENUM_COUNT,
41 }; 48 };
42 49
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 260
254 // Returns true if 'use_search_path_for_instant' flag is set to true in field 261 // Returns true if 'use_search_path_for_instant' flag is set to true in field
255 // trials to use an '/search' path in an alternate Instant search base page URL 262 // trials to use an '/search' path in an alternate Instant search base page URL
256 // for prefetching search results. This allows experimentation of Instant 263 // for prefetching search results. This allows experimentation of Instant
257 // search. 264 // search.
258 bool ShouldUseSearchPathForInstant(); 265 bool ShouldUseSearchPathForInstant();
259 266
260 } // namespace chrome 267 } // namespace chrome
261 268
262 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 269 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698