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_SEARCH_TERMS_DATA_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/string16.h" | 12 #include "base/strings/string16.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 // All data needed by TemplateURLRef::ReplaceSearchTerms which typically may | 16 // All data needed by TemplateURLRef::ReplaceSearchTerms which typically may |
17 // only be accessed on the UI thread. | 17 // only be accessed on the UI thread. |
18 class SearchTermsData { | 18 class SearchTermsData { |
19 public: | 19 public: |
20 SearchTermsData(); | 20 SearchTermsData(); |
21 virtual ~SearchTermsData(); | 21 virtual ~SearchTermsData(); |
22 | 22 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 static void SetGoogleBaseURL(const std::string& base_url); | 87 static void SetGoogleBaseURL(const std::string& base_url); |
88 | 88 |
89 private: | 89 private: |
90 static std::string* google_base_url_; | 90 static std::string* google_base_url_; |
91 Profile* profile_; | 91 Profile* profile_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(UIThreadSearchTermsData); | 93 DISALLOW_COPY_AND_ASSIGN(UIThreadSearchTermsData); |
94 }; | 94 }; |
95 | 95 |
96 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | 96 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
OLD | NEW |