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 COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
6 #define COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_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 | 13 |
14 // All data needed by TemplateURLRef::ReplaceSearchTerms which typically may | 14 // All data needed by TemplateURLRef::ReplaceSearchTerms which typically may |
15 // only be accessed on the UI thread. | 15 // only be accessed on the UI thread. |
16 class SearchTermsData { | 16 class SearchTermsData { |
17 public: | 17 public: |
18 SearchTermsData(); | 18 SearchTermsData(); |
19 virtual ~SearchTermsData(); | 19 virtual ~SearchTermsData(); |
20 | 20 |
21 // Returns the value to use for replacements of type GOOGLE_BASE_URL. This | 21 // Returns the value to use for replacements of type GOOGLE_BASE_URL. This |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Returns a string with languages understood by the user. | 82 // Returns a string with languages understood by the user. |
83 // Determining this requires accessing the Profile, so this can only ever be | 83 // Determining this requires accessing the Profile, so this can only ever be |
84 // non-empty for UIThreadSearchTermsData. | 84 // non-empty for UIThreadSearchTermsData. |
85 virtual std::string GetAcceptLanguages() const; | 85 virtual std::string GetAcceptLanguages() const; |
86 | 86 |
87 private: | 87 private: |
88 DISALLOW_COPY_AND_ASSIGN(SearchTermsData); | 88 DISALLOW_COPY_AND_ASSIGN(SearchTermsData); |
89 }; | 89 }; |
90 | 90 |
91 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | 91 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
OLD | NEW |