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" | |
11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "components/search_engines/search_terms_data.h" | 13 #include "components/search_engines/search_terms_data.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 // Implementation of SearchTermsData that is only usable on the UI thread. | 17 // Implementation of SearchTermsData that is only usable on the UI thread. |
18 class UIThreadSearchTermsData : public SearchTermsData { | 18 class UIThreadSearchTermsData : public SearchTermsData { |
19 public: | 19 public: |
20 // If |profile_| is NULL, the Google base URL accessors will return default | 20 // If |profile_| is NULL, the Google base URL accessors will return default |
21 // values, and NTPIsThemedParam() will return an empty string. | 21 // values, and NTPIsThemedParam() will return an empty string. |
(...skipping 18 matching lines...) Expand all Loading... |
40 static void SetGoogleBaseURL(const std::string& base_url); | 40 static void SetGoogleBaseURL(const std::string& base_url); |
41 | 41 |
42 private: | 42 private: |
43 static std::string* google_base_url_; | 43 static std::string* google_base_url_; |
44 Profile* profile_; | 44 Profile* profile_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(UIThreadSearchTermsData); | 46 DISALLOW_COPY_AND_ASSIGN(UIThreadSearchTermsData); |
47 }; | 47 }; |
48 | 48 |
49 #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 |