Chromium Code Reviews| 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 switch device region settings. | |
|
Peter Kasting
2015/05/12 18:49:13
Nit: switches
sdefresne
2015/05/13 12:47:12
Done.
| |
| 72 // TODO(ios): Remove this method once user can customize search engine, see | |
|
Peter Kasting
2015/05/12 18:49:14
Nit: engines
sdefresne
2015/05/13 12:47:12
Done.
| |
| 73 // http://crbug.com/144145 | |
|
Peter Kasting
2015/05/12 18:49:14
Nit: Trailing period
Also, the linked bug isn't o
sdefresne
2015/05/13 12:47:12
Good catch. I've updated the bug reference.
| |
| 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 |