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

Side by Side Diff: components/omnibox/browser/mock_autocomplete_provider_client.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
« no previous file with comments | « components/omnibox/browser/history_url_provider.cc ('k') | components/search/search.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OMNIBOX_BROWSER_MOCK_AUTOCOMPLETE_PROVIDER_CLIENT_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_MOCK_AUTOCOMPLETE_PROVIDER_CLIENT_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_MOCK_AUTOCOMPLETE_PROVIDER_CLIENT_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_MOCK_AUTOCOMPLETE_PROVIDER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() override { 57 scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() override {
58 return nullptr; 58 return nullptr;
59 } 59 }
60 60
61 MOCK_CONST_METHOD0(GetAcceptLanguages, std::string()); 61 MOCK_CONST_METHOD0(GetAcceptLanguages, std::string());
62 MOCK_METHOD0(GetEmbedderRepresentationOfAboutScheme, std::string()); 62 MOCK_METHOD0(GetEmbedderRepresentationOfAboutScheme, std::string());
63 MOCK_METHOD0(GetBuiltinURLs, std::vector<base::string16>()); 63 MOCK_METHOD0(GetBuiltinURLs, std::vector<base::string16>());
64 MOCK_METHOD0(GetBuiltinsToProvideAsUserTypes, std::vector<base::string16>()); 64 MOCK_METHOD0(GetBuiltinsToProvideAsUserTypes, std::vector<base::string16>());
65 MOCK_CONST_METHOD0(IsOffTheRecord, bool()); 65 MOCK_CONST_METHOD0(IsOffTheRecord, bool());
66 MOCK_CONST_METHOD0(SearchSuggestEnabled, bool()); 66 MOCK_CONST_METHOD0(SearchSuggestEnabled, bool());
67 MOCK_CONST_METHOD0(BookmarkBarIsVisible, bool());
68 MOCK_CONST_METHOD0(TabSyncEnabledAndUnencrypted, bool()); 67 MOCK_CONST_METHOD0(TabSyncEnabledAndUnencrypted, bool());
69 MOCK_METHOD6( 68 MOCK_METHOD6(
70 Classify, 69 Classify,
71 void(const base::string16& text, 70 void(const base::string16& text,
72 bool prefer_keyword, 71 bool prefer_keyword,
73 bool allow_exact_keyword_match, 72 bool allow_exact_keyword_match,
74 metrics::OmniboxEventProto::PageClassification page_classification, 73 metrics::OmniboxEventProto::PageClassification page_classification,
75 AutocompleteMatch* match, 74 AutocompleteMatch* match,
76 GURL* alternate_nav_url)); 75 GURL* alternate_nav_url));
77 MOCK_METHOD2(DeleteMatchingURLsForKeywordFromHistory, 76 MOCK_METHOD2(DeleteMatchingURLsForKeywordFromHistory,
78 void(history::KeywordID keyword_id, const base::string16& term)); 77 void(history::KeywordID keyword_id, const base::string16& term));
79 MOCK_METHOD1(PrefetchImage, void(const GURL& url)); 78 MOCK_METHOD1(PrefetchImage, void(const GURL& url));
80 79
81 void set_template_url_service(scoped_ptr<TemplateURLService> service) { 80 void set_template_url_service(scoped_ptr<TemplateURLService> service) {
82 template_url_service_ = std::move(service); 81 template_url_service_ = std::move(service);
83 } 82 }
84 83
85 private: 84 private:
86 scoped_ptr<TemplateURLService> template_url_service_; 85 scoped_ptr<TemplateURLService> template_url_service_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(MockAutocompleteProviderClient); 87 DISALLOW_COPY_AND_ASSIGN(MockAutocompleteProviderClient);
89 }; 88 };
90 89
91 #endif // COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_CLIENT_H_ 90 #endif // COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_CLIENT_H_
OLDNEW
« no previous file with comments | « components/omnibox/browser/history_url_provider.cc ('k') | components/search/search.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698