| 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 "components/safe_browsing_db/v4_protocol_manager_util.h" | 5 #include "components/safe_browsing_db/v4_protocol_manager_util.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/metrics/sparse_histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "crypto/sha2.h" | 12 #include "crypto/sha2.h" |
| 13 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
| 14 #include "net/http/http_request_headers.h" | 14 #include "net/http/http_request_headers.h" |
| 15 #include "url/url_util.h" | 15 #include "url/url_util.h" |
| 16 | 16 |
| 17 using base::Time; | 17 using base::Time; |
| 18 using base::TimeDelta; | 18 using base::TimeDelta; |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 // static | 503 // static |
| 504 void V4ProtocolManagerUtil::SetClientInfoFromConfig( | 504 void V4ProtocolManagerUtil::SetClientInfoFromConfig( |
| 505 ClientInfo* client_info, | 505 ClientInfo* client_info, |
| 506 const V4ProtocolConfig& config) { | 506 const V4ProtocolConfig& config) { |
| 507 DCHECK(client_info); | 507 DCHECK(client_info); |
| 508 client_info->set_client_id(config.client_name); | 508 client_info->set_client_id(config.client_name); |
| 509 client_info->set_client_version(config.version); | 509 client_info->set_client_version(config.version); |
| 510 } | 510 } |
| 511 | 511 |
| 512 } // namespace safe_browsing | 512 } // namespace safe_browsing |
| OLD | NEW |