OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser_thread.h" | |
9 #include "content/browser/renderer_host/render_view_host.h" | 8 #include "content/browser/renderer_host/render_view_host.h" |
10 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 9 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
11 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 10 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
12 #include "content/browser/ssl/ssl_cert_error_handler.h" | 11 #include "content/browser/ssl/ssl_cert_error_handler.h" |
13 #include "content/browser/tab_contents/navigation_controller.h" | 12 #include "content/browser/tab_contents/navigation_controller.h" |
14 #include "content/browser/tab_contents/tab_contents.h" | 13 #include "content/browser/tab_contents/tab_contents.h" |
| 14 #include "content/public/browser/browser_thread.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/url_request/url_request.h" | 16 #include "net/url_request/url_request.h" |
17 | 17 |
18 SSLErrorHandler::SSLErrorHandler(ResourceDispatcherHost* rdh, | 18 SSLErrorHandler::SSLErrorHandler(ResourceDispatcherHost* rdh, |
19 net::URLRequest* request, | 19 net::URLRequest* request, |
20 ResourceType::Type resource_type) | 20 ResourceType::Type resource_type) |
21 : manager_(NULL), | 21 : manager_(NULL), |
22 request_id_(0, 0), | 22 request_id_(0, 0), |
23 resource_dispatcher_host_(rdh), | 23 resource_dispatcher_host_(rdh), |
24 request_url_(request->url()), | 24 request_url_(request->url()), |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // already have been deleted. | 178 // already have been deleted. |
179 DCHECK(!request_has_been_notified_); | 179 DCHECK(!request_has_been_notified_); |
180 if (request_has_been_notified_) | 180 if (request_has_been_notified_) |
181 return; | 181 return; |
182 | 182 |
183 request_has_been_notified_ = true; | 183 request_has_been_notified_ = true; |
184 | 184 |
185 // We're done with this object on the IO thread. | 185 // We're done with this object on the IO thread. |
186 Release(); | 186 Release(); |
187 } | 187 } |
OLD | NEW |