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

Side by Side Diff: components/safe_browsing_db/v4_protocol_manager.cc

Issue 1658913003: SafeBrowsing: Move V4ProtocolManager to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sb-v4-3
Patch Set: Add build dependency 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 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
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
OLDNEW
« no previous file with comments | « components/safe_browsing_db/v4_protocol_manager.h ('k') | components/safe_browsing_db/v4_protocol_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698