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> |
11 | 11 |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "chrome/browser/ui/search/search_model.h" | 13 #include "chrome/browser/ui/search/search_model.h" |
14 | 14 |
15 class GURL; | 15 class GURL; |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 class BrowserContext; | 19 class BrowserContext; |
20 class NavigationEntry; | 20 class NavigationEntry; |
21 class WebContents; | 21 class WebContents; |
22 } | 22 } |
23 | 23 |
24 namespace user_prefs { | |
25 class PrefRegistrySyncable; | |
26 } | |
27 | |
28 namespace search { | 24 namespace search { |
29 | 25 |
30 // For reporting Cacheable NTP navigations. | 26 // For reporting Cacheable NTP navigations. |
31 enum CacheableNTPLoad { | 27 enum CacheableNTPLoad { |
32 CACHEABLE_NTP_LOAD_FAILED = 0, | 28 CACHEABLE_NTP_LOAD_FAILED = 0, |
33 CACHEABLE_NTP_LOAD_SUCCEEDED = 1, | 29 CACHEABLE_NTP_LOAD_SUCCEEDED = 1, |
34 CACHEABLE_NTP_LOAD_MAX = 2 | 30 CACHEABLE_NTP_LOAD_MAX = 2 |
35 }; | 31 }; |
36 | 32 |
37 // Returns whether the suggest is enabled for the given |profile|. | 33 // Returns whether the suggest is enabled for the given |profile|. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // ----------------------------------------------------- | 128 // ----------------------------------------------------- |
133 // The following APIs are exposed for use in tests only. | 129 // The following APIs are exposed for use in tests only. |
134 // ----------------------------------------------------- | 130 // ----------------------------------------------------- |
135 | 131 |
136 // Returns the Cacheable New Tab Page URL for the given |profile|. | 132 // Returns the Cacheable New Tab Page URL for the given |profile|. |
137 GURL GetNewTabPageURL(Profile* profile); | 133 GURL GetNewTabPageURL(Profile* profile); |
138 | 134 |
139 } // namespace search | 135 } // namespace search |
140 | 136 |
141 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 137 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
OLD | NEW |