Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: components/search_engines/testing_search_terms_data.h

Issue 1543203002: Remove a variety of no-longer-used query params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/macros.h"
9 #include "components/search_engines/search_terms_data.h" 9 #include "components/search_engines/search_terms_data.h"
10 10
11 class TestingSearchTermsData : public SearchTermsData { 11 class TestingSearchTermsData : public SearchTermsData {
12 public: 12 public:
13 explicit TestingSearchTermsData(const std::string& google_base_url); 13 explicit TestingSearchTermsData(const std::string& google_base_url);
14 ~TestingSearchTermsData() override; 14 ~TestingSearchTermsData() override;
15 15
16 std::string GoogleBaseURLValue() const override; 16 std::string GoogleBaseURLValue() const override;
17 base::string16 GetRlzParameterValue(bool from_app_list) const override; 17 base::string16 GetRlzParameterValue(bool from_app_list) const override;
18 std::string GetSearchClient() const override; 18 std::string GetSearchClient() const override;
19 std::string GoogleImageSearchSource() const override; 19 std::string GoogleImageSearchSource() const override;
20 bool IsShowingSearchTermsOnSearchResultsPages() const override;
21 int OmniboxStartMargin() const override;
22 20
23 void set_google_base_url(const std::string& google_base_url) { 21 void set_google_base_url(const std::string& google_base_url) {
24 google_base_url_ = google_base_url; 22 google_base_url_ = google_base_url;
25 } 23 }
26 void set_search_client(const std::string& search_client) { 24 void set_search_client(const std::string& search_client) {
27 search_client_ = search_client; 25 search_client_ = search_client;
28 } 26 }
29 void set_is_showing_search_terms_on_search_results_pages(bool value) {
30 is_showing_search_terms_on_search_results_pages_ = value;
31 }
32 void set_omnibox_start_margin(int omnibox_start_margin) {
33 omnibox_start_margin_ = omnibox_start_margin;
34 }
35 27
36 private: 28 private:
37 std::string google_base_url_; 29 std::string google_base_url_;
38 std::string search_client_; 30 std::string search_client_;
39 bool is_showing_search_terms_on_search_results_pages_;
40 int omnibox_start_margin_;
41 31
42 DISALLOW_COPY_AND_ASSIGN(TestingSearchTermsData); 32 DISALLOW_COPY_AND_ASSIGN(TestingSearchTermsData);
43 }; 33 };
44 34
45 #endif // COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_ 35 #endif // COMPONENTS_SEARCH_ENGINES_TESTING_SEARCH_TERMS_DATA_H_
OLDNEW
« no previous file with comments | « components/search_engines/template_url_unittest.cc ('k') | components/search_engines/testing_search_terms_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698