OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
6 #define CHROME_BROWSER_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> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "components/search_engines/search_engine_type.h" | 15 #include "components/search_engines/search_engine_type.h" |
16 | 16 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // NOTE: Must be called on the UI thread. | 66 // NOTE: Must be called on the UI thread. |
67 SearchEngineType GetEngineType(const TemplateURL& template_url, | 67 SearchEngineType GetEngineType(const TemplateURL& template_url, |
68 const SearchTermsData& search_terms_data); | 68 const SearchTermsData& search_terms_data); |
69 | 69 |
70 // Like the above, but takes a GURL which is expected to represent a search URL. | 70 // Like the above, but takes a GURL which is expected to represent a search URL. |
71 // This may be called on any thread. | 71 // This may be called on any thread. |
72 SearchEngineType GetEngineType(const GURL& url); | 72 SearchEngineType GetEngineType(const GURL& url); |
73 | 73 |
74 } // namespace TemplateURLPrepopulateData | 74 } // namespace TemplateURLPrepopulateData |
75 | 75 |
76 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 76 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
OLD | NEW |