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

Side by Side Diff: content/browser/ssl/ssl_error_handler.cc

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_error_handler.h ('k') | content/browser/ssl/ssl_manager.h » ('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 #include "content/browser/ssl/ssl_error_handler.h" 5 #include "content/browser/ssl/ssl_error_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/ssl/ssl_cert_error_handler.h" 9 #include "content/browser/ssl/ssl_cert_error_handler.h"
10 #include "content/browser/web_contents/navigation_controller_impl.h" 10 #include "content/browser/web_contents/navigation_controller_impl.h"
11 #include "content/browser/web_contents/web_contents_impl.h" 11 #include "content/browser/web_contents/web_contents_impl.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/browser/resource_request_info.h" 13 #include "content/public/browser/resource_request_info.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/url_request/url_request.h" 15 #include "net/url_request/url_request.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 using content::RenderViewHostImpl; 18 using content::RenderViewHostImpl;
19 using content::WebContents; 19 using content::WebContents;
20 using net::SSLInfo; 20 using net::SSLInfo;
21 21
22 SSLErrorHandler::SSLErrorHandler(base::WeakPtr<Delegate> delegate, 22 SSLErrorHandler::SSLErrorHandler(const base::WeakPtr<Delegate>& delegate,
23 const content::GlobalRequestID& id, 23 const content::GlobalRequestID& id,
24 ResourceType::Type resource_type, 24 ResourceType::Type resource_type,
25 const GURL& url, 25 const GURL& url,
26 int render_process_id, 26 int render_process_id,
27 int render_view_id) 27 int render_view_id)
28 : manager_(NULL), 28 : manager_(NULL),
29 request_id_(id), 29 request_id_(id),
30 delegate_(delegate), 30 delegate_(delegate),
31 render_process_id_(render_process_id), 31 render_process_id_(render_process_id),
32 render_view_id_(render_view_id), 32 render_view_id_(render_view_id),
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // already have been deleted. 168 // already have been deleted.
169 DCHECK(!request_has_been_notified_); 169 DCHECK(!request_has_been_notified_);
170 if (request_has_been_notified_) 170 if (request_has_been_notified_)
171 return; 171 return;
172 172
173 request_has_been_notified_ = true; 173 request_has_been_notified_ = true;
174 174
175 // We're done with this object on the IO thread. 175 // We're done with this object on the IO thread.
176 Release(); 176 Release();
177 } 177 }
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_error_handler.h ('k') | content/browser/ssl/ssl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698