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

Side by Side Diff: net/test/url_request/ssl_certificate_error_job.h

Issue 1239543003: [Cronet] Surface SSL cert error through CronetURLRequestAdapter::OnSSLCertificateError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add include Created 5 years, 5 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
« no previous file with comments | « net/net.gyp ('k') | net/test/url_request/ssl_certificate_error_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_TEST_URL_REQUEST_SSL_CERTIFICATE_ERROR_JOB_H_
6 #define NET_TEST_URL_REQUEST_SSL_CERTIFICATE_ERROR_JOB_H_
7
8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
10 #include "net/url_request/url_request_job.h"
11 #include "url/gurl.h"
12
13 namespace net {
14
15 class NetworkDelegate;
16 class URLRequest;
17
18 // SSLCertificateErrorJob simulates a ERR_CERT_DATE_INVALID error.
19 class SSLCertificateErrorJob : public URLRequestJob {
20 public:
21 SSLCertificateErrorJob(URLRequest* request,
22 NetworkDelegate* network_delegate);
23
24 // URLRequestJob implementation:
25 void Start() override;
26
27 // Adds the testing URLs to the URLRequestFilter.
28 static void AddUrlHandler();
29
30 static GURL GetMockUrl();
31
32 private:
33 ~SSLCertificateErrorJob() override;
34
35 void NotifyError();
36
37 base::WeakPtrFactory<SSLCertificateErrorJob> weak_factory_;
38
39 DISALLOW_COPY_AND_ASSIGN(SSLCertificateErrorJob);
40 };
41
42 } // namespace net
43
44 #endif // NET_TEST_URL_REQUEST_SSL_CERTIFICATE_ERROR_JOB_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/test/url_request/ssl_certificate_error_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698