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 CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
7 #pragma once | |
8 | 7 |
9 #include <stddef.h> | 8 #include <stddef.h> |
10 #include <string> | 9 #include <string> |
11 #include <vector> | 10 #include <vector> |
12 | 11 |
13 #include "base/string16.h" | 12 #include "base/string16.h" |
14 #include "chrome/browser/search_engines/search_engine_type.h" | 13 #include "chrome/browser/search_engines/search_engine_type.h" |
15 | 14 |
16 class GURL; | 15 class GURL; |
17 class PrefService; | 16 class PrefService; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Returns the type of the matching engine, or SEARCH_ENGINE_OTHER if no engines | 53 // Returns the type of the matching engine, or SEARCH_ENGINE_OTHER if no engines |
55 // match. This uses same-origin checks unless the |url| is a Google seach URL, | 54 // match. This uses same-origin checks unless the |url| is a Google seach URL, |
56 // in which case we'll identify any valid Google hostname as "Google". | 55 // in which case we'll identify any valid Google hostname as "Google". |
57 // | 56 // |
58 // NOTE: Must be called on the UI thread. | 57 // NOTE: Must be called on the UI thread. |
59 SearchEngineType GetEngineType(const std::string& url); | 58 SearchEngineType GetEngineType(const std::string& url); |
60 | 59 |
61 } // namespace TemplateURLPrepopulateData | 60 } // namespace TemplateURLPrepopulateData |
62 | 61 |
63 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ | 62 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_ |
OLD | NEW |