| 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/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 { |
| 11 | 11 |
| 12 std::string GetComponent(const std::string& url, | 12 std::string GetComponent(const std::string& url, |
| 13 const url::Component component) { | 13 const url::Component component) { |
| 14 return (component.len > 0) ? url.substr(component.begin, component.len) : | 14 return (component.len > 0) ? url.substr(component.begin, component.len) : |
| 15 std::string(); | 15 std::string(); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 value_param, net::UnescapeRule::NORMAL); | 129 value_param, net::UnescapeRule::NORMAL); |
| 130 } else if (key_param == kAssistedQueryStatsKey) { | 130 } else if (key_param == kAssistedQueryStatsKey) { |
| 131 assisted_query_stats = net::UnescapeAndDecodeUTF8URLComponent( | 131 assisted_query_stats = net::UnescapeAndDecodeUTF8URLComponent( |
| 132 value_param, net::UnescapeRule::NORMAL); | 132 value_param, net::UnescapeRule::NORMAL); |
| 133 } | 133 } |
| 134 } | 134 } |
| 135 } | 135 } |
| 136 | 136 |
| 137 EmbeddedSearchRequestParams::~EmbeddedSearchRequestParams() { | 137 EmbeddedSearchRequestParams::~EmbeddedSearchRequestParams() { |
| 138 } | 138 } |
| OLD | NEW |