| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include "chrome/browser/plugin_process_host.h" | 7 #include "chrome/browser/plugin_process_host.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const GURL& new_url) { | 138 const GURL& new_url) { |
| 139 } | 139 } |
| 140 | 140 |
| 141 void PluginDownloadUrlHelper::OnAuthRequired( | 141 void PluginDownloadUrlHelper::OnAuthRequired( |
| 142 URLRequest* request, | 142 URLRequest* request, |
| 143 net::AuthChallengeInfo* auth_info) { | 143 net::AuthChallengeInfo* auth_info) { |
| 144 URLRequest::Delegate::OnAuthRequired(request, auth_info); | 144 URLRequest::Delegate::OnAuthRequired(request, auth_info); |
| 145 DownloadCompletedHelper(false); | 145 DownloadCompletedHelper(false); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void PluginDownloadUrlHelper::OnSSLCertificateError(URLRequest* request, | 148 void PluginDownloadUrlHelper::OnSSLCertificateError( |
| 149 int cert_error, | 149 URLRequest* request, |
| 150 net::X509Certificate* cert)
{ | 150 int cert_error, |
| 151 net::X509Certificate* cert) { |
| 151 URLRequest::Delegate::OnSSLCertificateError(request, cert_error, cert); | 152 URLRequest::Delegate::OnSSLCertificateError(request, cert_error, cert); |
| 152 DownloadCompletedHelper(false); | 153 DownloadCompletedHelper(false); |
| 153 } | 154 } |
| 154 | 155 |
| 155 void PluginDownloadUrlHelper::OnResponseStarted(URLRequest* request) { | 156 void PluginDownloadUrlHelper::OnResponseStarted(URLRequest* request) { |
| 156 if (!download_file_->IsOpen()) { | 157 if (!download_file_->IsOpen()) { |
| 157 file_util::GetTempDir(&download_file_path_); | 158 file_util::GetTempDir(&download_file_path_); |
| 158 | 159 |
| 159 GURL request_url = request->url(); | 160 GURL request_url = request->url(); |
| 160 #if defined(OS_WIN) | 161 #if defined(OS_WIN) |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 } | 805 } |
| 805 | 806 |
| 806 void PluginProcessHost::Shutdown() { | 807 void PluginProcessHost::Shutdown() { |
| 807 #if defined(OS_WIN) | 808 #if defined(OS_WIN) |
| 808 Send(new PluginProcessMsg_BrowserShutdown); | 809 Send(new PluginProcessMsg_BrowserShutdown); |
| 809 #else | 810 #else |
| 810 // TODO(port): Port plugin_messages_internal.h. | 811 // TODO(port): Port plugin_messages_internal.h. |
| 811 NOTIMPLEMENTED(); | 812 NOTIMPLEMENTED(); |
| 812 #endif | 813 #endif |
| 813 } | 814 } |
| OLD | NEW |