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 #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/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 #include "googleurl/src/url_parse.h" | 13 #include "googleurl/src/url_parse.h" |
14 | 14 |
15 // The user input for an autocomplete query. Allows copying. | 15 // The user input for an autocomplete query. Allows copying. |
16 class AutocompleteInput { | 16 class AutocompleteInput { |
17 public: | 17 public: |
18 // Note that the type below may be misleading. For example, "http:/" alone | 18 // Note that the type below may be misleading. For example, "http:/" alone |
19 // cannot be opened as a URL, so it is marked as a QUERY; yet the user | 19 // cannot be opened as a URL, so it is marked as a QUERY; yet the user |
20 // probably intends to type more and have it eventually become a URL, so we | 20 // probably intends to type more and have it eventually become a URL, so we |
21 // need to make sure we still run it through inline autocomplete. | 21 // need to make sure we still run it through inline autocomplete. |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 url_parse::Parsed parts_; | 188 url_parse::Parsed parts_; |
189 string16 scheme_; | 189 string16 scheme_; |
190 GURL canonicalized_url_; | 190 GURL canonicalized_url_; |
191 bool prevent_inline_autocomplete_; | 191 bool prevent_inline_autocomplete_; |
192 bool prefer_keyword_; | 192 bool prefer_keyword_; |
193 bool allow_exact_keyword_match_; | 193 bool allow_exact_keyword_match_; |
194 MatchesRequested matches_requested_; | 194 MatchesRequested matches_requested_; |
195 }; | 195 }; |
196 | 196 |
197 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ | 197 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_INPUT_H_ |
OLD | NEW |