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_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 // google_util::IsGoogleHostname() to return true. | 58 // google_util::IsGoogleHostname() to return true. |
59 // | 59 // |
60 // NOTE: Must be called on the UI thread. | 60 // NOTE: Must be called on the UI thread. |
61 SearchEngineType GetEngineType(const TemplateURL& template_url, | 61 SearchEngineType GetEngineType(const TemplateURL& template_url, |
62 const SearchTermsData& search_terms_data); | 62 const SearchTermsData& search_terms_data); |
63 | 63 |
64 // Like the above, but takes a GURL which is expected to represent a search URL. | 64 // Like the above, but takes a GURL which is expected to represent a search URL. |
65 // This may be called on any thread. | 65 // This may be called on any thread. |
66 SearchEngineType GetEngineType(const GURL& url); | 66 SearchEngineType GetEngineType(const GURL& url); |
67 | 67 |
68 #if defined(OS_IOS) | |
69 | |
70 // Returns the identifier for the user current country. Used to update the list | |
71 // of search engines when user switches device region settings. | |
72 // TODO(ios): Remove this method once user can customize search engines, see | |
Peter Kasting
2015/05/18 18:31:34
Nit: Perhaps:
TODO(ios): Once the user can custom
sdefresne
2015/05/19 09:04:22
Acknowledged.
| |
73 // http://crbug.com/153047. | |
74 int GetCurrentCountryID(); | |
75 | |
76 #endif // defined(OS_IOS) | |
77 | |
68 } // namespace TemplateURLPrepopulateData | 78 } // namespace TemplateURLPrepopulateData |
69 | 79 |
70 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 80 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
OLD | NEW |