| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/safe_browsing/v4_protocol_manager.h" | 5 #include "components/safe_browsing_db/v4_protocol_manager.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/metrics/sparse_histogram.h" | 13 #include "base/metrics/sparse_histogram.h" |
| 14 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 prefix.c_str(), method.c_str(), request_base64.c_str(), | 403 prefix.c_str(), method.c_str(), request_base64.c_str(), |
| 404 client_id.c_str(), version.c_str()); | 404 client_id.c_str(), version.c_str()); |
| 405 if (!key_param.empty()) { | 405 if (!key_param.empty()) { |
| 406 base::StringAppendF(&url, "&key=%s", | 406 base::StringAppendF(&url, "&key=%s", |
| 407 net::EscapeQueryParamValue(key_param, true).c_str()); | 407 net::EscapeQueryParamValue(key_param, true).c_str()); |
| 408 } | 408 } |
| 409 return url; | 409 return url; |
| 410 } | 410 } |
| 411 | 411 |
| 412 } // namespace safe_browsing | 412 } // namespace safe_browsing |
| OLD | NEW |