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