OLD | NEW |
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::NavigationControllerImpl; |
18 using content::RenderViewHostImpl; | 19 using content::RenderViewHostImpl; |
19 using content::WebContents; | 20 using content::WebContents; |
20 using net::SSLInfo; | 21 using net::SSLInfo; |
21 | 22 |
22 SSLErrorHandler::SSLErrorHandler(const base::WeakPtr<Delegate>& delegate, | 23 SSLErrorHandler::SSLErrorHandler(const base::WeakPtr<Delegate>& delegate, |
23 const content::GlobalRequestID& id, | 24 const content::GlobalRequestID& id, |
24 ResourceType::Type resource_type, | 25 ResourceType::Type resource_type, |
25 const GURL& url, | 26 const GURL& url, |
26 int render_process_id, | 27 int render_process_id, |
27 int render_view_id) | 28 int render_view_id) |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // already have been deleted. | 169 // already have been deleted. |
169 DCHECK(!request_has_been_notified_); | 170 DCHECK(!request_has_been_notified_); |
170 if (request_has_been_notified_) | 171 if (request_has_been_notified_) |
171 return; | 172 return; |
172 | 173 |
173 request_has_been_notified_ = true; | 174 request_has_been_notified_ = true; |
174 | 175 |
175 // We're done with this object on the IO thread. | 176 // We're done with this object on the IO thread. |
176 Release(); | 177 Release(); |
177 } | 178 } |
OLD | NEW |