Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 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 #include "chrome/browser/plugin_download_helper.h" | 5 #include "chrome/browser/plugin_download_helper.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) && !defined(USE_AURA) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "content/browser/browser_thread.h" | 11 #include "content/browser/browser_thread.h" |
| 12 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
| 13 | 13 |
| 14 PluginDownloadUrlHelper::PluginDownloadUrlHelper( | 14 PluginDownloadUrlHelper::PluginDownloadUrlHelper( |
| 15 const std::string& download_url, | 15 const std::string& download_url, |
| 16 gfx::NativeWindow caller_window, | 16 gfx::NativeWindow caller_window, |
| 17 PluginDownloadUrlHelper::DownloadDelegate* delegate) | 17 PluginDownloadUrlHelper::DownloadDelegate* delegate) |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 | 73 |
| 74 if (::IsWindow(download_file_caller_window_)) { | 74 if (::IsWindow(download_file_caller_window_)) { |
| 75 ::SendMessage(download_file_caller_window_, WM_COPYDATA, NULL, | 75 ::SendMessage(download_file_caller_window_, WM_COPYDATA, NULL, |
| 76 reinterpret_cast<LPARAM>(&download_file_data)); | 76 reinterpret_cast<LPARAM>(&download_file_data)); |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 // Don't access any members after this. | 79 // Don't access any members after this. |
| 80 delete this; | 80 delete this; |
| 81 } | 81 } |
| 82 | 82 |
| 83 #endif // OS_WIN | 83 #endif // OS_WIN |
|
sky
2011/09/06 17:22:48
Update this too.
| |
| OLD | NEW |