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

Side by Side Diff: chrome/common/instant_types.cc

Issue 1731483003: chrome: 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/common/instant_types.h" 5 #include "chrome/common/instant_types.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "net/base/escape.h" 8 #include "net/base/escape.h"
9 9
10 namespace { 10 namespace {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 const char kSearchQueryKey[] = "q"; 85 const char kSearchQueryKey[] = "q";
86 const char kOriginalQueryKey[] = "oq"; 86 const char kOriginalQueryKey[] = "oq";
87 const char kRLZParameterKey[] = "rlz"; 87 const char kRLZParameterKey[] = "rlz";
88 const char kInputEncodingKey[] = "ie"; 88 const char kInputEncodingKey[] = "ie";
89 const char kAssistedQueryStatsKey[] = "aqs"; 89 const char kAssistedQueryStatsKey[] = "aqs";
90 90
91 InstantMostVisitedItem::InstantMostVisitedItem() {} 91 InstantMostVisitedItem::InstantMostVisitedItem() {}
92 92
93 InstantMostVisitedItem::InstantMostVisitedItem(
94 const InstantMostVisitedItem& other) = default;
95
93 InstantMostVisitedItem::~InstantMostVisitedItem() {} 96 InstantMostVisitedItem::~InstantMostVisitedItem() {}
94 97
95 EmbeddedSearchRequestParams::EmbeddedSearchRequestParams() { 98 EmbeddedSearchRequestParams::EmbeddedSearchRequestParams() {
96 } 99 }
97 100
98 EmbeddedSearchRequestParams::EmbeddedSearchRequestParams(const GURL& url) { 101 EmbeddedSearchRequestParams::EmbeddedSearchRequestParams(const GURL& url) {
99 const std::string& url_params(url.ref().empty()? url.query() : url.ref()); 102 const std::string& url_params(url.ref().empty()? url.query() : url.ref());
100 url::Component query, key, value; 103 url::Component query, key, value;
101 query.len = static_cast<int>(url_params.size()); 104 query.len = static_cast<int>(url_params.size());
102 105
(...skipping 22 matching lines...) Expand all
125 value_param, net::UnescapeRule::NORMAL); 128 value_param, net::UnescapeRule::NORMAL);
126 } else if (key_param == kAssistedQueryStatsKey) { 129 } else if (key_param == kAssistedQueryStatsKey) {
127 assisted_query_stats = net::UnescapeAndDecodeUTF8URLComponent( 130 assisted_query_stats = net::UnescapeAndDecodeUTF8URLComponent(
128 value_param, net::UnescapeRule::NORMAL); 131 value_param, net::UnescapeRule::NORMAL);
129 } 132 }
130 } 133 }
131 } 134 }
132 135
133 EmbeddedSearchRequestParams::~EmbeddedSearchRequestParams() { 136 EmbeddedSearchRequestParams::~EmbeddedSearchRequestParams() {
134 } 137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698