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

Side by Side Diff: chrome/browser/autocomplete/zero_suggest_provider.h

Issue 471673002: Omnibox: Prevent Asynchronous Suggestions from Changing Default Match (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better resolve rebase Created 6 years, 4 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 | Annotate | Revision Log
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. To enable 7 // and generates search query suggestions based on the current URL.
8 // this provider, point --experimental-zero-suggest-url-prefix at an
9 // appropriate suggestion service.
10 //
11 // HUGE DISCLAIMER: This is just here for experimenting and will probably be
12 // deleted entirely as we revise how suggestions work with the omnibox.
13 8
14 #ifndef CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ 9 #ifndef CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_
15 #define CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ 10 #define CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_
16 11
17 #include "base/basictypes.h" 12 #include "base/basictypes.h"
18 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
19 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
20 #include "chrome/browser/autocomplete/base_search_provider.h" 15 #include "chrome/browser/autocomplete/base_search_provider.h"
21 #include "chrome/browser/autocomplete/search_provider.h" 16 #include "chrome/browser/autocomplete/search_provider.h"
22 #include "chrome/browser/history/history_types.h" 17 #include "chrome/browser/history/history_types.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 160
166 history::MostVisitedURLList most_visited_urls_; 161 history::MostVisitedURLList most_visited_urls_;
167 162
168 // For callbacks that may be run after destruction. 163 // For callbacks that may be run after destruction.
169 base::WeakPtrFactory<ZeroSuggestProvider> weak_ptr_factory_; 164 base::WeakPtrFactory<ZeroSuggestProvider> weak_ptr_factory_;
170 165
171 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider); 166 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider);
172 }; 167 };
173 168
174 #endif // CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ 169 #endif // CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698