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) && !defined(USE_AURA) | |
8 #include <windows.h> | 7 #include <windows.h> |
9 | 8 |
10 #include "base/file_util.h" | 9 #include "base/file_util.h" |
11 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
12 #include "content/public/common/url_fetcher.h" | 11 #include "content/public/common/url_fetcher.h" |
13 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
14 | 13 |
15 PluginDownloadUrlHelper::PluginDownloadUrlHelper( | 14 PluginDownloadUrlHelper::PluginDownloadUrlHelper( |
16 const std::string& download_url, | 15 const std::string& download_url, |
17 gfx::NativeWindow caller_window, | 16 gfx::NativeWindow caller_window, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 74 |
76 if (::IsWindow(download_file_caller_window_)) { | 75 if (::IsWindow(download_file_caller_window_)) { |
77 ::SendMessage(download_file_caller_window_, WM_COPYDATA, NULL, | 76 ::SendMessage(download_file_caller_window_, WM_COPYDATA, NULL, |
78 reinterpret_cast<LPARAM>(&download_file_data)); | 77 reinterpret_cast<LPARAM>(&download_file_data)); |
79 } | 78 } |
80 } | 79 } |
81 // Don't access any members after this. | 80 // Don't access any members after this. |
82 delete this; | 81 delete this; |
83 } | 82 } |
84 | 83 |
85 #endif // defined(OS_WIN) && !defined(USE_AURA) | |
OLD | NEW |