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

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

Issue 1191373002: Componentize AutocompleteController and its supporting cast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prep_builtin_provider_for_c14n
Patch Set: Rebase Created 5 years, 5 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/builtin_provider.cc ('k') | components/omnibox/zero_suggest_provider.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 file contains the zero-suggest autocomplete provider. This experimental 5 // This file contains the zero-suggest autocomplete provider. This experimental
6 // provider is invoked when the user focuses in the omnibox prior to editing, 6 // provider is invoked when the user focuses in the omnibox prior to editing,
7 // and generates search query suggestions based on the current URL. 7 // and generates search query suggestions based on the current URL.
8 8
9 #ifndef CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ 9 #ifndef COMPONENTS_OMNIBOX_ZERO_SUGGEST_PROVIDER_H_
10 #define CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ 10 #define COMPONENTS_OMNIBOX_ZERO_SUGGEST_PROVIDER_H_
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "components/history/core/browser/history_types.h" 15 #include "components/history/core/browser/history_types.h"
16 #include "components/metrics/proto/omnibox_event.pb.h" 16 #include "components/metrics/proto/omnibox_event.pb.h"
17 #include "components/omnibox/base_search_provider.h" 17 #include "components/omnibox/base_search_provider.h"
18 #include "components/omnibox/search_provider.h" 18 #include "components/omnibox/search_provider.h"
19 #include "net/url_request/url_fetcher_delegate.h" 19 #include "net/url_request/url_fetcher_delegate.h"
20 20
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Whether we are waiting for a most visited visited urls callback to run. 156 // Whether we are waiting for a most visited visited urls callback to run.
157 bool waiting_for_most_visited_urls_request_; 157 bool waiting_for_most_visited_urls_request_;
158 158
159 // For callbacks that may be run after destruction. 159 // For callbacks that may be run after destruction.
160 base::WeakPtrFactory<ZeroSuggestProvider> weak_ptr_factory_; 160 base::WeakPtrFactory<ZeroSuggestProvider> weak_ptr_factory_;
161 161
162 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider); 162 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider);
163 }; 163 };
164 164
165 #endif // CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ 165 #endif // COMPONENTS_OMNIBOX_ZERO_SUGGEST_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/omnibox/builtin_provider.cc ('k') | components/omnibox/zero_suggest_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698