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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 explicit UIThreadSearchTermsData(Profile* profile); | 22 explicit UIThreadSearchTermsData(Profile* profile); |
23 | 23 |
24 virtual std::string GoogleBaseURLValue() const OVERRIDE; | 24 virtual std::string GoogleBaseURLValue() const OVERRIDE; |
25 virtual std::string GetApplicationLocale() const OVERRIDE; | 25 virtual std::string GetApplicationLocale() const OVERRIDE; |
26 virtual base::string16 GetRlzParameterValue(bool from_app_list) const | 26 virtual base::string16 GetRlzParameterValue(bool from_app_list) const |
27 OVERRIDE; | 27 OVERRIDE; |
28 virtual std::string GetSearchClient() const OVERRIDE; | 28 virtual std::string GetSearchClient() const OVERRIDE; |
29 virtual std::string GetSuggestClient() const OVERRIDE; | 29 virtual std::string GetSuggestClient() const OVERRIDE; |
30 virtual std::string GetSuggestRequestIdentifier() const OVERRIDE; | 30 virtual std::string GetSuggestRequestIdentifier() const OVERRIDE; |
31 virtual std::string NTPIsThemedParam() const OVERRIDE; | 31 virtual std::string NTPIsThemedParam() const OVERRIDE; |
| 32 virtual std::string GoogleImageSearchSource() const OVERRIDE; |
32 | 33 |
33 // Used by tests to override the value for the Google base URL. Passing the | 34 // Used by tests to override the value for the Google base URL. Passing the |
34 // empty string cancels this override. | 35 // empty string cancels this override. |
35 static void SetGoogleBaseURL(const std::string& base_url); | 36 static void SetGoogleBaseURL(const std::string& base_url); |
36 | 37 |
37 private: | 38 private: |
38 static std::string* google_base_url_; | 39 static std::string* google_base_url_; |
39 Profile* profile_; | 40 Profile* profile_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(UIThreadSearchTermsData); | 42 DISALLOW_COPY_AND_ASSIGN(UIThreadSearchTermsData); |
42 }; | 43 }; |
43 | 44 |
44 #endif // CHROME_BROWSER_SEARCH_ENGINES_UI_THREAD_SEARCH_TERMS_DATA_H_ | 45 #endif // CHROME_BROWSER_SEARCH_ENGINES_UI_THREAD_SEARCH_TERMS_DATA_H_ |
OLD | NEW |