| OLD | NEW |
| 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_PLUGIN_DOWNLOAD_HELPER_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_DOWNLOAD_HELPER_H_ |
| 6 #define CHROME_BROWSER_PLUGIN_DOWNLOAD_HELPER_H_ | 6 #define CHROME_BROWSER_PLUGIN_DOWNLOAD_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 | 11 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 virtual void OnDownloadCompleted(const FilePath& download_path, | 30 virtual void OnDownloadCompleted(const FilePath& download_path, |
| 31 bool success) {} | 31 bool success) {} |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 PluginDownloadUrlHelper(const std::string& download_url, | 34 PluginDownloadUrlHelper(const std::string& download_url, |
| 35 int source_pid, gfx::NativeWindow caller_window, | 35 int source_pid, gfx::NativeWindow caller_window, |
| 36 PluginDownloadUrlHelper::DownloadDelegate* delegate); | 36 PluginDownloadUrlHelper::DownloadDelegate* delegate); |
| 37 ~PluginDownloadUrlHelper(); | 37 ~PluginDownloadUrlHelper(); |
| 38 | 38 |
| 39 void InitiateDownload(URLRequestContext* request_context); | 39 void InitiateDownload(net::URLRequestContext* request_context); |
| 40 | 40 |
| 41 // net::URLRequest::Delegate | 41 // net::URLRequest::Delegate |
| 42 virtual void OnAuthRequired(net::URLRequest* request, | 42 virtual void OnAuthRequired(net::URLRequest* request, |
| 43 net::AuthChallengeInfo* auth_info); | 43 net::AuthChallengeInfo* auth_info); |
| 44 virtual void OnSSLCertificateError(net::URLRequest* request, | 44 virtual void OnSSLCertificateError(net::URLRequest* request, |
| 45 int cert_error, | 45 int cert_error, |
| 46 net::X509Certificate* cert); | 46 net::X509Certificate* cert); |
| 47 virtual void OnResponseStarted(net::URLRequest* request); | 47 virtual void OnResponseStarted(net::URLRequest* request); |
| 48 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read); | 48 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read); |
| 49 | 49 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 71 PluginDownloadUrlHelper::DownloadDelegate* delegate_; | 71 PluginDownloadUrlHelper::DownloadDelegate* delegate_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(PluginDownloadUrlHelper); | 73 DISALLOW_COPY_AND_ASSIGN(PluginDownloadUrlHelper); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 #endif // OS_WIN | 76 #endif // OS_WIN |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_PLUGIN_DOWNLOAD_HELPER_H_ | 78 #endif // CHROME_BROWSER_PLUGIN_DOWNLOAD_HELPER_H_ |
| 79 | 79 |
| 80 | 80 |
| OLD | NEW |