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_TESTING_SEARCH_TERMS_DATA_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_ |
6 #define COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "components/search_engines/search_terms_data.h" | 9 #include "components/search_engines/search_terms_data.h" |
9 | 10 |
10 class TestingSearchTermsData : public SearchTermsData { | 11 class TestingSearchTermsData : public SearchTermsData { |
11 public: | 12 public: |
12 explicit TestingSearchTermsData(const std::string& google_base_url); | 13 explicit TestingSearchTermsData(const std::string& google_base_url); |
13 ~TestingSearchTermsData() override; | 14 ~TestingSearchTermsData() override; |
14 | 15 |
15 std::string GoogleBaseURLValue() const override; | 16 std::string GoogleBaseURLValue() const override; |
16 base::string16 GetRlzParameterValue(bool from_app_list) const override; | 17 base::string16 GetRlzParameterValue(bool from_app_list) const override; |
17 std::string GetSearchClient() const override; | 18 std::string GetSearchClient() const override; |
(...skipping 17 matching lines...) Expand all Loading... |
35 private: | 36 private: |
36 std::string google_base_url_; | 37 std::string google_base_url_; |
37 std::string search_client_; | 38 std::string search_client_; |
38 bool is_showing_search_terms_on_search_results_pages_; | 39 bool is_showing_search_terms_on_search_results_pages_; |
39 int omnibox_start_margin_; | 40 int omnibox_start_margin_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(TestingSearchTermsData); | 42 DISALLOW_COPY_AND_ASSIGN(TestingSearchTermsData); |
42 }; | 43 }; |
43 | 44 |
44 #endif // COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_ | 45 #endif // COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_ |
OLD | NEW |