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

Side by Side Diff: content/renderer/pepper/pepper_broker_impl.cc

Issue 10843017: PPAPI/NaCl: Restrict ppapi messages to unblock only ppapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move RendererRestrictDispatchGroup to content/renderer/public Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer/pepper/pepper_broker_impl.h" 5 #include "content/renderer/pepper/pepper_broker_impl.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "content/public/renderer/renderer_restrict_dispatch_group.h"
8 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" 9 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
9 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" 10 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h"
10 #include "content/renderer/renderer_restrict_dispatch_group.h"
11 #include "ipc/ipc_channel_handle.h" 11 #include "ipc/ipc_channel_handle.h"
12 #include "ppapi/proxy/broker_dispatcher.h" 12 #include "ppapi/proxy/broker_dispatcher.h"
13 #include "ppapi/proxy/ppapi_messages.h" 13 #include "ppapi/proxy/ppapi_messages.h"
14 #include "ppapi/shared_impl/platform_file.h" 14 #include "ppapi/shared_impl/platform_file.h"
15 #include "webkit/plugins/ppapi/plugin_module.h" 15 #include "webkit/plugins/ppapi/plugin_module.h"
16 #include "webkit/plugins/ppapi/ppb_broker_impl.h" 16 #include "webkit/plugins/ppapi/ppb_broker_impl.h"
17 17
18 #if defined(OS_WIN) 18 #if defined(OS_WIN)
19 #include <windows.h> 19 #include <windows.h>
20 #endif 20 #endif
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 // TOOD(ddorwin): Change the IPC to asynchronous: Queue an object containing 242 // TOOD(ddorwin): Change the IPC to asynchronous: Queue an object containing
243 // client and plugin_socket.release(), then return. 243 // client and plugin_socket.release(), then return.
244 // That message handler will then call client->BrokerConnected() with the 244 // That message handler will then call client->BrokerConnected() with the
245 // saved pipe handle. 245 // saved pipe handle.
246 // Temporarily, just call back. 246 // Temporarily, just call back.
247 client->BrokerConnected(ppapi::PlatformFileToInt(plugin_handle), result); 247 client->BrokerConnected(ppapi::PlatformFileToInt(plugin_handle), result);
248 } 248 }
249 249
250 } // namespace content 250 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/renderer_restrict_dispatch_group.h ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698