Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/plugin/webplugin_proxy.h

Issue 20515: Fix plugin hang that Earth team found.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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__
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698