| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |