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

Side by Side Diff: components/omnibox/base_search_provider.h

Issue 489353004: Componentize SearchProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 // This class contains common functionality for search-based autocomplete 5 // This class contains common functionality for search-based autocomplete
6 // providers. Search provider and zero suggest provider both use it for common 6 // providers. Search provider and zero suggest provider both use it for common
7 // functionality. 7 // functionality.
8 8
9 #ifndef CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ 9 #ifndef COMPONENTS_OMNIBOX_BASE_SEARCH_PROVIDER_H_
10 #define CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ 10 #define COMPONENTS_OMNIBOX_BASE_SEARCH_PROVIDER_H_
11 11
12 #include <map> 12 #include <map>
13 #include <string> 13 #include <string>
14 #include <utility> 14 #include <utility>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
18 #include "base/strings/string16.h" 18 #include "base/strings/string16.h"
19 #include "components/metrics/proto/omnibox_event.pb.h" 19 #include "components/metrics/proto/omnibox_event.pb.h"
20 #include "components/omnibox/autocomplete_input.h" 20 #include "components/omnibox/autocomplete_input.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 SuggestionDeletionHandler* handler); 247 SuggestionDeletionHandler* handler);
248 248
249 // Each deletion handler in this vector corresponds to an outstanding request 249 // Each deletion handler in this vector corresponds to an outstanding request
250 // that a server delete a personalized suggestion. Making this a ScopedVector 250 // that a server delete a personalized suggestion. Making this a ScopedVector
251 // causes us to auto-cancel all such requests on shutdown. 251 // causes us to auto-cancel all such requests on shutdown.
252 SuggestionDeletionHandlers deletion_handlers_; 252 SuggestionDeletionHandlers deletion_handlers_;
253 253
254 DISALLOW_COPY_AND_ASSIGN(BaseSearchProvider); 254 DISALLOW_COPY_AND_ASSIGN(BaseSearchProvider);
255 }; 255 };
256 256
257 #endif // CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ 257 #endif // COMPONENTS_OMNIBOX_BASE_SEARCH_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/omnibox/answers_cache_unittest.cc ('k') | components/omnibox/base_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698