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

Side by Side Diff: content/browser/loader/resource_loader.cc

Issue 1772603002: Addition of Certificate Transparency details to Security panel of DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/browser/loader/resource_loader.h" 5 #include "content/browser/loader/resource_loader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void StoreSignedCertificateTimestamps( 51 void StoreSignedCertificateTimestamps(
52 const net::SignedCertificateTimestampAndStatusList& sct_list, 52 const net::SignedCertificateTimestampAndStatusList& sct_list,
53 int process_id, 53 int process_id,
54 SignedCertificateTimestampIDStatusList* sct_ids) { 54 SignedCertificateTimestampIDStatusList* sct_ids) {
55 SignedCertificateTimestampStore* sct_store( 55 SignedCertificateTimestampStore* sct_store(
56 SignedCertificateTimestampStore::GetInstance()); 56 SignedCertificateTimestampStore::GetInstance());
57 57
58 for (auto iter = sct_list.begin(); iter != sct_list.end(); ++iter) { 58 for (auto iter = sct_list.begin(); iter != sct_list.end(); ++iter) {
59 const int sct_id(sct_store->Store(iter->sct.get(), process_id)); 59 const int sct_id(sct_store->Store(iter->sct.get(), process_id));
60 sct_ids->push_back( 60 sct_ids->push_back(
61 SignedCertificateTimestampIDAndStatus(sct_id, iter->status)); 61 SignedCertificateTimestampIDAndStatus(sct_id,
62 iter->status,
63 iter->sct->version,
64 iter->sct->log_id,
65 iter->sct->timestamp.ToJavaTime(),
66 iter->sct->signature,
67 iter->sct->origin,
68 iter->sct->log_description));
62 } 69 }
63 } 70 }
64 71
65 void GetSSLStatusForRequest(const GURL& url, 72 void GetSSLStatusForRequest(const GURL& url,
66 const net::SSLInfo& ssl_info, 73 const net::SSLInfo& ssl_info,
67 int child_id, 74 int child_id,
68 SSLStatus* ssl_status) { 75 SSLStatus* ssl_status) {
69 DCHECK(ssl_info.cert); 76 DCHECK(ssl_info.cert);
70 77
71 int cert_id = 78 int cert_id =
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 case net::URLRequestStatus::FAILED: 717 case net::URLRequestStatus::FAILED:
711 status = STATUS_UNDEFINED; 718 status = STATUS_UNDEFINED;
712 break; 719 break;
713 } 720 }
714 721
715 UMA_HISTOGRAM_ENUMERATION("Net.Prefetch.Pattern", status, STATUS_MAX); 722 UMA_HISTOGRAM_ENUMERATION("Net.Prefetch.Pattern", status, STATUS_MAX);
716 } 723 }
717 } 724 }
718 725
719 } // namespace content 726 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698