| 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 #ifndef CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 5 #ifndef CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| 6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_handle.h" | 10 #include "base/scoped_handle.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 const base::SharedMemoryHandle& background_buffer); | 90 const base::SharedMemoryHandle& background_buffer); |
| 91 | 91 |
| 92 void CancelDocumentLoad(); | 92 void CancelDocumentLoad(); |
| 93 | 93 |
| 94 void InitiateHTTPRangeRequest(const char* url, | 94 void InitiateHTTPRangeRequest(const char* url, |
| 95 const char* range_info, | 95 const char* range_info, |
| 96 void* existing_stream, | 96 void* existing_stream, |
| 97 bool notify_needed, | 97 bool notify_needed, |
| 98 HANDLE notify_data); | 98 HANDLE notify_data); |
| 99 | 99 |
| 100 base::WaitableEvent* modal_dialog_event() { |
| 101 return modal_dialog_event_.get(); |
| 102 } |
| 103 |
| 100 private: | 104 private: |
| 101 bool Send(IPC::Message* msg); | 105 bool Send(IPC::Message* msg); |
| 102 | 106 |
| 103 // Updates the shared memory section where windowless plugins paint. | 107 // Updates the shared memory section where windowless plugins paint. |
| 104 void SetWindowlessBuffer(const base::SharedMemoryHandle& windowless_buffer, | 108 void SetWindowlessBuffer(const base::SharedMemoryHandle& windowless_buffer, |
| 105 const base::SharedMemoryHandle& background_buffer); | 109 const base::SharedMemoryHandle& background_buffer); |
| 106 | 110 |
| 107 // Converts a shared memory section handle from the renderer process into a | 111 // Converts a shared memory section handle from the renderer process into a |
| 108 // bitmap and hdc that are mapped to this process. | 112 // bitmap and hdc that are mapped to this process. |
| 109 void ConvertBuffer(const base::SharedMemoryHandle& buffer, | 113 void ConvertBuffer(const base::SharedMemoryHandle& buffer, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 146 |
| 143 // These hold the bitmap of the background image. | 147 // These hold the bitmap of the background image. |
| 144 ScopedHandle background_shared_section_; | 148 ScopedHandle background_shared_section_; |
| 145 ScopedBitmap background_bitmap_; | 149 ScopedBitmap background_bitmap_; |
| 146 ScopedHDC background_hdc_; | 150 ScopedHDC background_hdc_; |
| 147 | 151 |
| 148 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; | 152 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; |
| 149 }; | 153 }; |
| 150 | 154 |
| 151 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ | 155 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ |
| OLD | NEW |