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 #include "chrome/browser/autocomplete/autocomplete_input.h" | 5 #include "chrome/browser/autocomplete/autocomplete_input.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 9 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
10 #include "chrome/browser/net/url_fixer_upper.h" | 10 #include "chrome/browser/net/url_fixer_upper.h" |
11 #include "chrome/browser/profiles/profile_io_data.h" | 11 #include "chrome/browser/profiles/profile_io_data.h" |
12 #include "content/public/common/url_constants.h" | 12 #include "content/public/common/url_constants.h" |
13 #include "googleurl/src/url_canon_ip.h" | 13 #include "googleurl/src/url_canon_ip.h" |
14 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
15 #include "net/base/registry_controlled_domain.h" | 15 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
16 | 16 |
17 AutocompleteInput::AutocompleteInput() | 17 AutocompleteInput::AutocompleteInput() |
18 : type_(INVALID), | 18 : type_(INVALID), |
19 prevent_inline_autocomplete_(false), | 19 prevent_inline_autocomplete_(false), |
20 prefer_keyword_(false), | 20 prefer_keyword_(false), |
21 allow_exact_keyword_match_(true), | 21 allow_exact_keyword_match_(true), |
22 matches_requested_(ALL_MATCHES) { | 22 matches_requested_(ALL_MATCHES) { |
23 } | 23 } |
24 | 24 |
25 AutocompleteInput::AutocompleteInput(const string16& text, | 25 AutocompleteInput::AutocompleteInput(const string16& text, |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 | 473 |
474 void AutocompleteInput::Clear() { | 474 void AutocompleteInput::Clear() { |
475 text_.clear(); | 475 text_.clear(); |
476 type_ = INVALID; | 476 type_ = INVALID; |
477 parts_ = url_parse::Parsed(); | 477 parts_ = url_parse::Parsed(); |
478 scheme_.clear(); | 478 scheme_.clear(); |
479 desired_tld_.clear(); | 479 desired_tld_.clear(); |
480 prevent_inline_autocomplete_ = false; | 480 prevent_inline_autocomplete_ = false; |
481 prefer_keyword_ = false; | 481 prefer_keyword_ = false; |
482 } | 482 } |
OLD | NEW |