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

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

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | 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"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "chrome/browser/net/cert_logger.pb.h" 13 #include "chrome/browser/net/cert_logger.pb.h"
14 #include "net/base/load_flags.h" 14 #include "net/base/load_flags.h"
15 #include "net/base/ssl_info.h"
16 #include "net/base/upload_bytes_element_reader.h" 15 #include "net/base/upload_bytes_element_reader.h"
17 #include "net/base/upload_data_stream.h" 16 #include "net/base/upload_data_stream.h"
18 #include "net/base/x509_certificate.h" 17 #include "net/base/x509_certificate.h"
18 #include "net/ssl/ssl_info.h"
19 #include "net/url_request/url_request_context.h" 19 #include "net/url_request/url_request_context.h"
20 20
21 namespace chrome_browser_net { 21 namespace chrome_browser_net {
22 22
23 // TODO(palmer): Switch to HTTPS when the error handling delegate is more 23 // TODO(palmer): Switch to HTTPS when the error handling delegate is more
24 // sophisticated. Ultimately we plan to attempt the report on many transports. 24 // sophisticated. Ultimately we plan to attempt the report on many transports.
25 static const char kFraudulentCertificateUploadEndpoint[] = 25 static const char kFraudulentCertificateUploadEndpoint[] =
26 "http://clients3.google.com/log_cert_error"; 26 "http://clients3.google.com/log_cert_error";
27 27
28 ChromeFraudulentCertificateReporter::ChromeFraudulentCertificateReporter( 28 ChromeFraudulentCertificateReporter::ChromeFraudulentCertificateReporter(
(...skipping 86 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 | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_fraudulent_certificate_reporter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698