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

Side by Side Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 10535062: Add an asynchronous version of the Flash DeviceID API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/browser/renderer_host/pepper_message_filter.cc ('k') | ppapi/api/private/ppb_flash.idl » ('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) 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/ppapi_plugin/ppapi_thread.h" 5 #include "content/ppapi_plugin/ppapi_thread.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_SendToACK, 108 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_SendToACK,
109 OnPluginDispatcherMessageReceived(msg)) 109 OnPluginDispatcherMessageReceived(msg))
110 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_BindACK, 110 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_BindACK,
111 OnPluginDispatcherMessageReceived(msg)) 111 OnPluginDispatcherMessageReceived(msg))
112 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTalk_GetPermissionACK, 112 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTalk_GetPermissionACK,
113 OnPluginDispatcherMessageReceived(msg)) 113 OnPluginDispatcherMessageReceived(msg))
114 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBHostResolver_ResolveACK, 114 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBHostResolver_ResolveACK,
115 OnPluginDispatcherMessageReceived(msg)) 115 OnPluginDispatcherMessageReceived(msg))
116 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBNetworkMonitor_NetworkList, 116 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBNetworkMonitor_NetworkList,
117 OnPluginDispatcherMessageReceived(msg)) 117 OnPluginDispatcherMessageReceived(msg))
118 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashDeviceID_GetReply,
119 OnPluginDispatcherMessageReceived(msg))
118 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState) 120 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState)
119 IPC_END_MESSAGE_MAP() 121 IPC_END_MESSAGE_MAP()
120 return true; 122 return true;
121 } 123 }
122 void PpapiThread::OnChannelConnected(int32 peer_pid) { 124 void PpapiThread::OnChannelConnected(int32 peer_pid) {
123 #if defined(OS_WIN) 125 #if defined(OS_WIN)
124 if (is_broker_) 126 if (is_broker_)
125 peer_handle_.Set(::OpenProcess(PROCESS_DUP_HANDLE, FALSE, peer_pid)); 127 peer_handle_.Set(::OpenProcess(PROCESS_DUP_HANDLE, FALSE, peer_pid));
126 #endif 128 #endif
127 } 129 }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 355
354 // From here, the dispatcher will manage its own lifetime according to the 356 // From here, the dispatcher will manage its own lifetime according to the
355 // lifetime of the attached channel. 357 // lifetime of the attached channel.
356 return true; 358 return true;
357 } 359 }
358 360
359 void PpapiThread::SavePluginName(const FilePath& path) { 361 void PpapiThread::SavePluginName(const FilePath& path) {
360 ppapi::proxy::PluginGlobals::Get()->set_plugin_name( 362 ppapi::proxy::PluginGlobals::Get()->set_plugin_name(
361 path.BaseName().AsUTF8Unsafe()); 363 path.BaseName().AsUTF8Unsafe());
362 } 364 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper_message_filter.cc ('k') | ppapi/api/private/ppb_flash.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698