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

Side by Side Diff: content/browser/ssl/ssl_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
« no previous file with comments | « content/browser/ssl/ssl_cert_error_handler.cc ('k') | content/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ERROR_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_
6 #define CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ 6 #define CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // call this. 99 // call this.
100 void TakeNoAction(); 100 void TakeNoAction();
101 101
102 int render_process_id() const { return render_process_id_; } 102 int render_process_id() const { return render_process_id_; }
103 int render_view_id() const { return render_view_id_; } 103 int render_view_id() const { return render_view_id_; }
104 104
105 protected: 105 protected:
106 friend class base::RefCountedThreadSafe<SSLErrorHandler>; 106 friend class base::RefCountedThreadSafe<SSLErrorHandler>;
107 107
108 // Construct on the IO thread. 108 // Construct on the IO thread.
109 SSLErrorHandler(base::WeakPtr<Delegate> delegate, 109 SSLErrorHandler(const base::WeakPtr<Delegate>& delegate,
110 const content::GlobalRequestID& id, 110 const content::GlobalRequestID& id,
111 ResourceType::Type resource_type, 111 ResourceType::Type resource_type,
112 const GURL& url, 112 const GURL& url,
113 int render_process_id, 113 int render_process_id,
114 int render_view_id); 114 int render_view_id);
115 115
116 virtual ~SSLErrorHandler(); 116 virtual ~SSLErrorHandler();
117 117
118 // The following 2 methods are the methods subclasses should implement. 118 // The following 2 methods are the methods subclasses should implement.
119 virtual void OnDispatchFailed(); 119 virtual void OnDispatchFailed();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 const ResourceType::Type resource_type_; 160 const ResourceType::Type resource_type_;
161 161
162 // A flag to make sure we notify the net::URLRequest exactly once. 162 // A flag to make sure we notify the net::URLRequest exactly once.
163 // Should only be accessed on the IO thread 163 // Should only be accessed on the IO thread
164 bool request_has_been_notified_; 164 bool request_has_been_notified_;
165 165
166 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); 166 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler);
167 }; 167 };
168 168
169 #endif // CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ 169 #endif // CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_cert_error_handler.cc ('k') | content/browser/ssl/ssl_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698