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 // Returns the identifier for the user current country. Used to update the list |
| 69 // of search engines when user switches device region settings. For use on iOS |
| 70 // only. |
| 71 // TODO(ios): Once user can customize search engines ( http://crbug.com/153047 ) |
| 72 // this declaration should be removed and the definition in the .cc file be |
| 73 // moved back to the anonymous namespace. |
| 74 int GetCurrentCountryID(); |
| 75 |
68 } // namespace TemplateURLPrepopulateData | 76 } // namespace TemplateURLPrepopulateData |
69 | 77 |
70 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 78 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
OLD | NEW |