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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual std::string InstantExtendedEnabledParam(bool for_search) const; | 53 virtual std::string InstantExtendedEnabledParam(bool for_search) const; |
54 | 54 |
55 // Returns a string that will cause the search results page to update | 55 // Returns a string that will cause the search results page to update |
56 // incrementally. | 56 // incrementally. |
57 virtual std::string ForceInstantResultsParam(bool for_prerender) const; | 57 virtual std::string ForceInstantResultsParam(bool for_prerender) const; |
58 | 58 |
59 // Returns the value to use for replacements of type | 59 // Returns the value to use for replacements of type |
60 // GOOGLE_IMAGE_SEARCH_SOURCE. | 60 // GOOGLE_IMAGE_SEARCH_SOURCE. |
61 virtual std::string GoogleImageSearchSource() const; | 61 virtual std::string GoogleImageSearchSource() const; |
62 | 62 |
63 // Returns a string with languages understood by the user. | |
64 // Determining this requires accessing the Profile, so this can only ever be | |
65 // non-empty for UIThreadSearchTermsData. | |
66 virtual std::string GetAcceptLanguages() const; | |
67 | |
68 private: | 63 private: |
69 DISALLOW_COPY_AND_ASSIGN(SearchTermsData); | 64 DISALLOW_COPY_AND_ASSIGN(SearchTermsData); |
70 }; | 65 }; |
71 | 66 |
72 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | 67 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
OLD | NEW |