| 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/renderer_host/resource_dispatcher_host.h" | 9 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 10 #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" | 11 #include "content/browser/ssl/ssl_cert_error_handler.h" |
| 12 #include "content/browser/tab_contents/navigation_controller_impl.h" | 12 #include "content/browser/tab_contents/navigation_controller_impl.h" |
| 13 #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" | 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 using content::BrowserThread; | 18 using content::BrowserThread; |
| 19 using content::RenderViewHostImpl; |
| 19 using content::WebContents; | 20 using content::WebContents; |
| 20 | 21 |
| 21 SSLErrorHandler::SSLErrorHandler(ResourceDispatcherHost* rdh, | 22 SSLErrorHandler::SSLErrorHandler(ResourceDispatcherHost* rdh, |
| 22 net::URLRequest* request, | 23 net::URLRequest* request, |
| 23 ResourceType::Type resource_type) | 24 ResourceType::Type resource_type) |
| 24 : manager_(NULL), | 25 : manager_(NULL), |
| 25 request_id_(0, 0), | 26 request_id_(0, 0), |
| 26 resource_dispatcher_host_(rdh), | 27 resource_dispatcher_host_(rdh), |
| 27 request_url_(request->url()), | 28 request_url_(request->url()), |
| 28 resource_type_(resource_type), | 29 resource_type_(resource_type), |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // already have been deleted. | 184 // already have been deleted. |
| 184 DCHECK(!request_has_been_notified_); | 185 DCHECK(!request_has_been_notified_); |
| 185 if (request_has_been_notified_) | 186 if (request_has_been_notified_) |
| 186 return; | 187 return; |
| 187 | 188 |
| 188 request_has_been_notified_ = true; | 189 request_has_been_notified_ = true; |
| 189 | 190 |
| 190 // We're done with this object on the IO thread. | 191 // We're done with this object on the IO thread. |
| 191 Release(); | 192 Release(); |
| 192 } | 193 } |
| OLD | NEW |