OLD | NEW |
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. To enable |
8 // this provider, point --experimental-zero-suggest-url-prefix at an | 8 // this provider, point --experimental-zero-suggest-url-prefix at an |
9 // appropriate suggestion service. | 9 // appropriate suggestion service. |
10 // | 10 // |
11 // HUGE DISCLAIMER: This is just here for experimenting and will probably be | 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. | 12 // deleted entirely as we revise how suggestions work with the omnibox. |
13 | 13 |
14 #ifndef CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ | 14 #ifndef CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ |
15 #define CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ | 15 #define CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ |
16 | 16 |
17 #include <map> | 17 #include <map> |
18 #include <string> | 18 #include <string> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "base/basictypes.h" | 21 #include "base/basictypes.h" |
22 #include "base/compiler_specific.h" | 22 #include "base/compiler_specific.h" |
23 #include "base/memory/scoped_ptr.h" | 23 #include "base/memory/scoped_ptr.h" |
24 #include "base/string16.h" | 24 #include "base/strings/string16.h" |
25 #include "chrome/browser/autocomplete/autocomplete_provider.h" | 25 #include "chrome/browser/autocomplete/autocomplete_provider.h" |
26 #include "chrome/browser/autocomplete/search_provider.h" | 26 #include "chrome/browser/autocomplete/search_provider.h" |
27 #include "net/url_request/url_fetcher_delegate.h" | 27 #include "net/url_request/url_fetcher_delegate.h" |
28 | 28 |
29 class AutocompleteInput; | 29 class AutocompleteInput; |
30 class GURL; | 30 class GURL; |
31 class TemplateURLService; | 31 class TemplateURLService; |
32 | 32 |
33 namespace base { | 33 namespace base { |
34 class ListValue; | 34 class ListValue; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Whether a zero suggest request triggered a field trial in the omnibox | 175 // Whether a zero suggest request triggered a field trial in the omnibox |
176 // session. The user could have clicked on a suggestion when zero suggest | 176 // session. The user could have clicked on a suggestion when zero suggest |
177 // triggered (same condition as field_trial_triggered_), or triggered zero | 177 // triggered (same condition as field_trial_triggered_), or triggered zero |
178 // suggest but kept typing. | 178 // suggest but kept typing. |
179 bool field_trial_triggered_in_session_; | 179 bool field_trial_triggered_in_session_; |
180 | 180 |
181 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider); | 181 DISALLOW_COPY_AND_ASSIGN(ZeroSuggestProvider); |
182 }; | 182 }; |
183 | 183 |
184 #endif // CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ | 184 #endif // CHROME_BROWSER_AUTOCOMPLETE_ZERO_SUGGEST_PROVIDER_H_ |
OLD | NEW |