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

Side by Side Diff: content/plugin/webplugin_proxy.cc

Issue 7054068: Make sandboxed Flash work under UIPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « content/plugin/webplugin_proxy.h ('k') | webkit/plugins/npapi/plugin_constants_win.h » ('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) 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 "content/plugin/webplugin_proxy.h" 5 #include "content/plugin/webplugin_proxy.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/scoped_handle.h" 10 #include "base/memory/scoped_handle.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void WebPluginProxy::SetWindowlessPumpEvent(HANDLE pump_messages_event) { 124 void WebPluginProxy::SetWindowlessPumpEvent(HANDLE pump_messages_event) {
125 HANDLE pump_messages_event_for_renderer = NULL; 125 HANDLE pump_messages_event_for_renderer = NULL;
126 DuplicateHandle(GetCurrentProcess(), pump_messages_event, 126 DuplicateHandle(GetCurrentProcess(), pump_messages_event,
127 channel_->renderer_handle(), 127 channel_->renderer_handle(),
128 &pump_messages_event_for_renderer, 128 &pump_messages_event_for_renderer,
129 0, FALSE, DUPLICATE_SAME_ACCESS); 129 0, FALSE, DUPLICATE_SAME_ACCESS);
130 DCHECK(pump_messages_event_for_renderer != NULL); 130 DCHECK(pump_messages_event_for_renderer != NULL);
131 Send(new PluginHostMsg_SetWindowlessPumpEvent( 131 Send(new PluginHostMsg_SetWindowlessPumpEvent(
132 route_id_, pump_messages_event_for_renderer)); 132 route_id_, pump_messages_event_for_renderer));
133 } 133 }
134
135 void WebPluginProxy::ReparentPluginWindow(HWND window, HWND parent) {
136 PluginThread::current()->Send(
137 new PluginProcessHostMsg_ReparentPluginWindow(window, parent));
138 }
134 #endif 139 #endif
135 140
136 void WebPluginProxy::CancelResource(unsigned long id) { 141 void WebPluginProxy::CancelResource(unsigned long id) {
137 Send(new PluginHostMsg_CancelResource(route_id_, id)); 142 Send(new PluginHostMsg_CancelResource(route_id_, id));
138 resource_clients_.erase(id); 143 resource_clients_.erase(id);
139 } 144 }
140 145
141 void WebPluginProxy::Invalidate() { 146 void WebPluginProxy::Invalidate() {
142 gfx::Rect rect(0, 0, 147 gfx::Rect rect(0, 0,
143 delegate_->GetRect().width(), 148 delegate_->GetRect().width(),
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 resource_clients_.erase(index++); 656 resource_clients_.erase(index++);
652 } else { 657 } else {
653 index++; 658 index++;
654 } 659 }
655 } 660 }
656 } 661 }
657 662
658 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { 663 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) {
659 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); 664 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id));
660 } 665 }
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.h ('k') | webkit/plugins/npapi/plugin_constants_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698