| OLD | NEW |
| 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/search/instant_types.h" | 5 #include "chrome/common/search/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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 logo_alternate == rhs.logo_alternate; | 82 logo_alternate == rhs.logo_alternate; |
| 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 : source(ntp_tiles::NTPTileSource::TOP_SITES) {} | 92 : source(ntp_tiles::TileSource::TOP_SITES) {} |
| 93 | 93 |
| 94 InstantMostVisitedItem::InstantMostVisitedItem( | 94 InstantMostVisitedItem::InstantMostVisitedItem( |
| 95 const InstantMostVisitedItem& other) = default; | 95 const InstantMostVisitedItem& other) = default; |
| 96 | 96 |
| 97 InstantMostVisitedItem::~InstantMostVisitedItem() {} | 97 InstantMostVisitedItem::~InstantMostVisitedItem() {} |
| 98 | 98 |
| 99 EmbeddedSearchRequestParams::EmbeddedSearchRequestParams() { | 99 EmbeddedSearchRequestParams::EmbeddedSearchRequestParams() { |
| 100 } | 100 } |
| 101 | 101 |
| 102 EmbeddedSearchRequestParams::EmbeddedSearchRequestParams(const GURL& url) { | 102 EmbeddedSearchRequestParams::EmbeddedSearchRequestParams(const GURL& url) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 130 value_param, net::UnescapeRule::NORMAL); | 130 value_param, net::UnescapeRule::NORMAL); |
| 131 } else if (key_param == kAssistedQueryStatsKey) { | 131 } else if (key_param == kAssistedQueryStatsKey) { |
| 132 assisted_query_stats = net::UnescapeAndDecodeUTF8URLComponent( | 132 assisted_query_stats = net::UnescapeAndDecodeUTF8URLComponent( |
| 133 value_param, net::UnescapeRule::NORMAL); | 133 value_param, net::UnescapeRule::NORMAL); |
| 134 } | 134 } |
| 135 } | 135 } |
| 136 } | 136 } |
| 137 | 137 |
| 138 EmbeddedSearchRequestParams::~EmbeddedSearchRequestParams() { | 138 EmbeddedSearchRequestParams::~EmbeddedSearchRequestParams() { |
| 139 } | 139 } |
| OLD | NEW |