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

Side by Side Diff: content/browser/ssl/ssl_cert_error_handler.h

Issue 10332233: Inherits SupportsWeakPtr<T> instead of having WeakPtrFactory<T> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style nits Created 8 years, 6 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 #ifndef CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_
6 #define CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_ 6 #define CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/browser/ssl/ssl_error_handler.h" 12 #include "content/browser/ssl/ssl_error_handler.h"
13 #include "net/base/ssl_info.h" 13 #include "net/base/ssl_info.h"
14 14
15 // A CertError represents an error that occurred with the certificate in an 15 // A CertError represents an error that occurred with the certificate in an
16 // SSL session. A CertError object exists both on the IO thread and on the UI 16 // SSL session. A CertError object exists both on the IO thread and on the UI
17 // thread and allows us to cancel/continue a request it is associated with. 17 // thread and allows us to cancel/continue a request it is associated with.
18 class SSLCertErrorHandler : public SSLErrorHandler { 18 class SSLCertErrorHandler : public SSLErrorHandler {
19 public: 19 public:
20 // Construct on the IO thread. 20 // Construct on the IO thread.
21 SSLCertErrorHandler(base::WeakPtr<Delegate> delegate, 21 SSLCertErrorHandler(const base::WeakPtr<Delegate>& delegate,
22 const content::GlobalRequestID& id, 22 const content::GlobalRequestID& id,
23 ResourceType::Type resource_type, 23 ResourceType::Type resource_type,
24 const GURL& url, 24 const GURL& url,
25 int render_process_id, 25 int render_process_id,
26 int render_view_id, 26 int render_view_id,
27 const net::SSLInfo& ssl_info, 27 const net::SSLInfo& ssl_info,
28 bool fatal); 28 bool fatal);
29 29
30 virtual SSLCertErrorHandler* AsSSLCertErrorHandler() OVERRIDE; 30 virtual SSLCertErrorHandler* AsSSLCertErrorHandler() OVERRIDE;
31 31
(...skipping 13 matching lines...) Expand all
45 // These read-only members may be accessed on any thread. 45 // These read-only members may be accessed on any thread.
46 const net::SSLInfo ssl_info_; 46 const net::SSLInfo ssl_info_;
47 const int cert_error_; // The error we represent. 47 const int cert_error_; // The error we represent.
48 const bool fatal_; // True if the error is from a host requiring 48 const bool fatal_; // True if the error is from a host requiring
49 // certificate errors to be fatal. 49 // certificate errors to be fatal.
50 50
51 DISALLOW_COPY_AND_ASSIGN(SSLCertErrorHandler); 51 DISALLOW_COPY_AND_ASSIGN(SSLCertErrorHandler);
52 }; 52 };
53 53
54 #endif // CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_ 54 #endif // CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/socket_stream_dispatcher_host.cc ('k') | content/browser/ssl/ssl_cert_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698