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

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

Issue 314773002: Omnibox: Send Input Type to Suggest Server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix (legitimate) clang error Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/search_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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/metrics/proto/omnibox_input_type.pb.h" 13 #include "components/metrics/proto/omnibox_input_type.pb.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 #include "url/url_parse.h" 15 #include "url/url_parse.h"
16 16
17 // The user input for an autocomplete query. Allows copying. 17 // The user input for an autocomplete query. Allows copying.
18 class AutocompleteInput { 18 class AutocompleteInput {
19 public: 19 public:
20 typedef metrics::OmniboxInputType::Type Type; 20 typedef metrics::OmniboxInputType::Type Type;
21 21
22 // The type of page currently displayed. 22 // The type of page currently displayed.
23 // Note: when adding an element to this enum, please add it at the end 23 // Warning: when adding an element to this enum, please add it at the end
24 // and update omnibox_event.proto::PageClassification and 24 // and update omnibox_event.proto::PageClassification and
25 // omnibox_edit_model.cc::ClassifyPage() too. 25 // omnibox_edit_model.cc::ClassifyPage() too.
26 enum PageClassification { 26 enum PageClassification {
27 // An invalid URL; shouldn't happen. 27 // An invalid URL; shouldn't happen.
28 INVALID_SPEC = 0, 28 INVALID_SPEC = 0,
29 29
30 // chrome://newtab/. This can be either the built-in version or a 30 // chrome://newtab/. This can be either the built-in version or a
31 // replacement new tab page from an extension. Note that when Instant 31 // replacement new tab page from an extension. Note that when Instant
32 // Extended is enabled, the new tab page will be reported as either 32 // Extended is enabled, the new tab page will be reported as either
33 // INSTANT_NTP_WITH_OMNIBOX_AS_STARTING_FOCUS or 33 // INSTANT_NTP_WITH_OMNIBOX_AS_STARTING_FOCUS or
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 url::Parsed parts_; 231 url::Parsed parts_;
232 base::string16 scheme_; 232 base::string16 scheme_;
233 GURL canonicalized_url_; 233 GURL canonicalized_url_;
234 bool prevent_inline_autocomplete_; 234 bool prevent_inline_autocomplete_;
235 bool prefer_keyword_; 235 bool prefer_keyword_;
236 bool allow_exact_keyword_match_; 236 bool allow_exact_keyword_match_;
237 bool want_asynchronous_matches_; 237 bool want_asynchronous_matches_;
238 }; 238 };
239 239
240 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ 240 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698