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

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

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 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 (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/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 request->ssl_info().connection_status; 106 request->ssl_info().connection_status;
107 response->head.ssl_key_exchange_group = 107 response->head.ssl_key_exchange_group =
108 request->ssl_info().key_exchange_group; 108 request->ssl_info().key_exchange_group;
109 response->head.signed_certificate_timestamps = 109 response->head.signed_certificate_timestamps =
110 request->ssl_info().signed_certificate_timestamps; 110 request->ssl_info().signed_certificate_timestamps;
111 std::string encoded; 111 std::string encoded;
112 bool rv = net::X509Certificate::GetDEREncoded( 112 bool rv = net::X509Certificate::GetDEREncoded(
113 request->ssl_info().cert->os_cert_handle(), &encoded); 113 request->ssl_info().cert->os_cert_handle(), &encoded);
114 DCHECK(rv); 114 DCHECK(rv);
115 response->head.certificate.push_back(encoded); 115 response->head.certificate.push_back(encoded);
116 for (auto& cert : 116 for (auto* cert :
117 request->ssl_info().cert->GetIntermediateCertificates()) { 117 request->ssl_info().cert->GetIntermediateCertificates()) {
118 rv = net::X509Certificate::GetDEREncoded(cert, &encoded); 118 rv = net::X509Certificate::GetDEREncoded(cert, &encoded);
119 DCHECK(rv); 119 DCHECK(rv);
120 response->head.certificate.push_back(encoded); 120 response->head.certificate.push_back(encoded);
121 } 121 }
122 } 122 }
123 } else { 123 } else {
124 // We should not have any SSL state. 124 // We should not have any SSL state.
125 DCHECK(!request->ssl_info().cert_status); 125 DCHECK(!request->ssl_info().cert_status);
126 DCHECK_EQ(request->ssl_info().security_bits, -1); 126 DCHECK_EQ(request->ssl_info().security_bits, -1);
127 DCHECK_EQ(request->ssl_info().key_exchange_group, 0); 127 DCHECK_EQ(request->ssl_info().key_exchange_group, 0);
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 UMA_HISTOGRAM_ENUMERATION("Net.Prefetch.Pattern", prefetch_status, 792 UMA_HISTOGRAM_ENUMERATION("Net.Prefetch.Pattern", prefetch_status,
793 STATUS_MAX); 793 STATUS_MAX);
794 } 794 }
795 } else if (request_->response_info().unused_since_prefetch) { 795 } else if (request_->response_info().unused_since_prefetch) {
796 TimeDelta total_time = base::TimeTicks::Now() - request_->creation_time(); 796 TimeDelta total_time = base::TimeTicks::Now() - request_->creation_time();
797 UMA_HISTOGRAM_TIMES("Net.Prefetch.TimeSpentOnPrefetchHit", total_time); 797 UMA_HISTOGRAM_TIMES("Net.Prefetch.TimeSpentOnPrefetchHit", total_time);
798 } 798 }
799 } 799 }
800 800
801 } // namespace content 801 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction_coordinator.cc ('k') | content/browser/media/session/audio_focus_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698