Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: components/search_engines/template_url_prepopulate_data.h

Issue 1130183004: [iOS] Expose TemplateURLPrepopulateData::GetCurrentCountryID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/search_engines/template_url_prepopulate_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/search_engines/template_url_prepopulate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698