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 CHROME_BROWSER_SEARCH_ENGINES_UI_THREAD_SEARCH_TERMS_DATA_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_UI_THREAD_SEARCH_TERMS_DATA_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_UI_THREAD_SEARCH_TERMS_DATA_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_UI_THREAD_SEARCH_TERMS_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 std::string GoogleBaseURLValue() const override; | 24 std::string GoogleBaseURLValue() const override; |
25 std::string GetApplicationLocale() const override; | 25 std::string GetApplicationLocale() const override; |
26 base::string16 GetRlzParameterValue(bool from_app_list) const override; | 26 base::string16 GetRlzParameterValue(bool from_app_list) const override; |
27 std::string GetSearchClient() const override; | 27 std::string GetSearchClient() const override; |
28 std::string GetSuggestClient() const override; | 28 std::string GetSuggestClient() const override; |
29 std::string GetSuggestRequestIdentifier() const override; | 29 std::string GetSuggestRequestIdentifier() const override; |
30 std::string InstantExtendedEnabledParam() const override; | 30 std::string InstantExtendedEnabledParam() const override; |
31 std::string ForceInstantResultsParam(bool for_prerender) const override; | 31 std::string ForceInstantResultsParam(bool for_prerender) const override; |
32 std::string GoogleImageSearchSource() const override; | 32 std::string GoogleImageSearchSource() const override; |
33 | 33 |
| 34 #if defined(OS_ANDROID) |
| 35 std::string GetYandexReferralID() const override; |
| 36 #endif |
| 37 |
34 // Used by tests to override the value for the Google base URL. Passing the | 38 // Used by tests to override the value for the Google base URL. Passing the |
35 // empty string cancels this override. | 39 // empty string cancels this override. |
36 static void SetGoogleBaseURL(const std::string& base_url); | 40 static void SetGoogleBaseURL(const std::string& base_url); |
37 | 41 |
38 private: | 42 private: |
39 static std::string* google_base_url_; | 43 static std::string* google_base_url_; |
40 Profile* profile_; | 44 Profile* profile_; |
41 | 45 |
42 DISALLOW_COPY_AND_ASSIGN(UIThreadSearchTermsData); | 46 DISALLOW_COPY_AND_ASSIGN(UIThreadSearchTermsData); |
43 }; | 47 }; |
44 | 48 |
45 #endif // CHROME_BROWSER_SEARCH_ENGINES_UI_THREAD_SEARCH_TERMS_DATA_H_ | 49 #endif // CHROME_BROWSER_SEARCH_ENGINES_UI_THREAD_SEARCH_TERMS_DATA_H_ |
OLD | NEW |