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

Side by Side Diff: components/omnibox/browser/autocomplete_input.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_INPUT_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_INPUT_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_INPUT_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_INPUT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const std::string& desired_tld, 73 const std::string& desired_tld,
74 const GURL& current_url, 74 const GURL& current_url,
75 metrics::OmniboxEventProto::PageClassification 75 metrics::OmniboxEventProto::PageClassification
76 current_page_classification, 76 current_page_classification,
77 bool prevent_inline_autocomplete, 77 bool prevent_inline_autocomplete,
78 bool prefer_keyword, 78 bool prefer_keyword,
79 bool allow_exact_keyword_match, 79 bool allow_exact_keyword_match,
80 bool want_asynchronous_matches, 80 bool want_asynchronous_matches,
81 bool from_omnibox_focus, 81 bool from_omnibox_focus,
82 const AutocompleteSchemeClassifier& scheme_classifier); 82 const AutocompleteSchemeClassifier& scheme_classifier);
83 AutocompleteInput(const AutocompleteInput& other);
83 ~AutocompleteInput(); 84 ~AutocompleteInput();
84 85
85 // If type is |FORCED_QUERY| and |text| starts with '?', it is removed. 86 // If type is |FORCED_QUERY| and |text| starts with '?', it is removed.
86 // Returns number of leading characters removed. 87 // Returns number of leading characters removed.
87 static size_t RemoveForcedQueryStringIfNecessary( 88 static size_t RemoveForcedQueryStringIfNecessary(
88 metrics::OmniboxInputType::Type type, 89 metrics::OmniboxInputType::Type type,
89 base::string16* text); 90 base::string16* text);
90 91
91 // Converts |type| to a string representation. Used in logging. 92 // Converts |type| to a string representation. Used in logging.
92 static std::string TypeToString(metrics::OmniboxInputType::Type type); 93 static std::string TypeToString(metrics::OmniboxInputType::Type type);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 GURL canonicalized_url_; 222 GURL canonicalized_url_;
222 bool prevent_inline_autocomplete_; 223 bool prevent_inline_autocomplete_;
223 bool prefer_keyword_; 224 bool prefer_keyword_;
224 bool allow_exact_keyword_match_; 225 bool allow_exact_keyword_match_;
225 bool want_asynchronous_matches_; 226 bool want_asynchronous_matches_;
226 bool from_omnibox_focus_; 227 bool from_omnibox_focus_;
227 std::vector<base::string16> terms_prefixed_by_http_or_https_; 228 std::vector<base::string16> terms_prefixed_by_http_or_https_;
228 }; 229 };
229 230
230 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_INPUT_H_ 231 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698