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

Side by Side Diff: chrome/browser/net/chrome_fraudulent_certificate_reporter.cc

Issue 51683002: [Net] Assert that URLRequests with LOAD_IGNORE_LIMITS have MAXIMUM_PRIORITY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" 5 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 *cert_chain += pem_encoded_chain[i]; 51 *cert_chain += pem_encoded_chain[i];
52 52
53 std::string out; 53 std::string out;
54 request.SerializeToString(&out); 54 request.SerializeToString(&out);
55 return out; 55 return out;
56 } 56 }
57 57
58 net::URLRequest* ChromeFraudulentCertificateReporter::CreateURLRequest( 58 net::URLRequest* ChromeFraudulentCertificateReporter::CreateURLRequest(
59 net::URLRequestContext* context) { 59 net::URLRequestContext* context) {
60 net::URLRequest* request = context->CreateRequest(upload_url_, this); 60 net::URLRequest* request = context->CreateRequest(upload_url_, this);
61 request->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | 61 request->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
62 net::LOAD_DO_NOT_SAVE_COOKIES); 62 net::LOAD_DO_NOT_SAVE_COOKIES);
63 return request; 63 return request;
64 } 64 }
65 65
66 void ChromeFraudulentCertificateReporter::SendReport( 66 void ChromeFraudulentCertificateReporter::SendReport(
67 const std::string& hostname, 67 const std::string& hostname,
68 const net::SSLInfo& ssl_info, 68 const net::SSLInfo& ssl_info,
69 bool sni_available) { 69 bool sni_available) {
70 // We do silent/automatic reporting ONLY for Google properties. For other 70 // We do silent/automatic reporting ONLY for Google properties. For other
71 // domains (when we start supporting that), we will ask for user permission. 71 // domains (when we start supporting that), we will ask for user permission.
72 if (!net::TransportSecurityState::IsGooglePinnedProperty(hostname, 72 if (!net::TransportSecurityState::IsGooglePinnedProperty(hostname,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 LOG(WARNING) << "Certificate upload HTTP status: " 115 LOG(WARNING) << "Certificate upload HTTP status: "
116 << request->GetResponseCode(); 116 << request->GetResponseCode();
117 } 117 }
118 RequestComplete(request); 118 RequestComplete(request);
119 } 119 }
120 120
121 void ChromeFraudulentCertificateReporter::OnReadCompleted( 121 void ChromeFraudulentCertificateReporter::OnReadCompleted(
122 net::URLRequest* request, int bytes_read) {} 122 net::URLRequest* request, int bytes_read) {}
123 123
124 } // namespace chrome_browser_net 124 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/http_pipelining_compatibility_client.cc » ('j') | net/socket/client_socket_pool_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698