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 "chrome/browser/ssl/ssl_error_handler.h" |
6 | 6 |
7 #include "chrome/browser/browser_thread.h" | 7 #include "chrome/browser/browser_thread.h" |
8 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 8 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
9 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" | 9 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" |
10 #include "chrome/browser/ssl/ssl_cert_error_handler.h" | 10 #include "chrome/browser/ssl/ssl_cert_error_handler.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 SSLErrorHandler::~SSLErrorHandler() {} | 49 SSLErrorHandler::~SSLErrorHandler() {} |
50 | 50 |
51 void SSLErrorHandler::OnDispatchFailed() { | 51 void SSLErrorHandler::OnDispatchFailed() { |
52 TakeNoAction(); | 52 TakeNoAction(); |
53 } | 53 } |
54 | 54 |
55 void SSLErrorHandler::OnDispatched() { | 55 void SSLErrorHandler::OnDispatched() { |
56 TakeNoAction(); | 56 TakeNoAction(); |
57 } | 57 } |
58 | 58 |
| 59 SSLCertErrorHandler* SSLErrorHandler::AsSSLCertErrorHandler() { |
| 60 return NULL; |
| 61 } |
| 62 |
59 void SSLErrorHandler::Dispatch() { | 63 void SSLErrorHandler::Dispatch() { |
60 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 64 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
61 | 65 |
62 TabContents* tab_contents = GetTabContents(); | 66 TabContents* tab_contents = GetTabContents(); |
63 if (!tab_contents) { | 67 if (!tab_contents) { |
64 // We arrived on the UI thread, but the tab we're looking for is no longer | 68 // We arrived on the UI thread, but the tab we're looking for is no longer |
65 // here. | 69 // here. |
66 OnDispatchFailed(); | 70 OnDispatchFailed(); |
67 return; | 71 return; |
68 } | 72 } |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // already have been deleted. | 180 // already have been deleted. |
177 DCHECK(!request_has_been_notified_); | 181 DCHECK(!request_has_been_notified_); |
178 if (request_has_been_notified_) | 182 if (request_has_been_notified_) |
179 return; | 183 return; |
180 | 184 |
181 request_has_been_notified_ = true; | 185 request_has_been_notified_ = true; |
182 | 186 |
183 // We're done with this object on the IO thread. | 187 // We're done with this object on the IO thread. |
184 Release(); | 188 Release(); |
185 } | 189 } |
OLD | NEW |