| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SEARCH_SEARCH_H_ | 5 #ifndef COMPONENTS_SEARCH_SEARCH_H_ |
| 6 #define COMPONENTS_SEARCH_SEARCH_H_ | 6 #define COMPONENTS_SEARCH_SEARCH_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | |
| 12 #include <vector> | |
| 13 | 11 |
| 14 #include "base/strings/string16.h" | |
| 15 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
| 16 | 13 |
| 17 class GURL; | 14 class GURL; |
| 18 class TemplateURL; | 15 class TemplateURL; |
| 19 | 16 |
| 20 namespace search { | 17 namespace search { |
| 21 | 18 |
| 22 // Returns whether the Instant Extended API is enabled. | 19 // Returns whether the Instant Extended API is enabled. |
| 23 bool IsInstantExtendedAPIEnabled(); | 20 bool IsInstantExtendedAPIEnabled(); |
| 24 | 21 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool ShouldReuseInstantSearchBasePage(); | 83 bool ShouldReuseInstantSearchBasePage(); |
| 87 | 84 |
| 88 // |url| should either have a secure scheme or have a non-HTTPS base URL that | 85 // |url| should either have a secure scheme or have a non-HTTPS base URL that |
| 89 // the user specified using --google-base-url. (This allows testers to use | 86 // the user specified using --google-base-url. (This allows testers to use |
| 90 // --google-base-url to point at non-HTTPS servers, which eases testing.) | 87 // --google-base-url to point at non-HTTPS servers, which eases testing.) |
| 91 bool IsSuitableURLForInstant(const GURL& url, const TemplateURL* template_url); | 88 bool IsSuitableURLForInstant(const GURL& url, const TemplateURL* template_url); |
| 92 | 89 |
| 93 } // namespace search | 90 } // namespace search |
| 94 | 91 |
| 95 #endif // COMPONENTS_SEARCH_SEARCH_H_ | 92 #endif // COMPONENTS_SEARCH_SEARCH_H_ |
| OLD | NEW |