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

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

Issue 11359147: Convert the Pepper Talk API to use the new resource system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/chrome_browser.gypi ('k') | ppapi/api/private/ppb_talk_private.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_PPBTCPSocket_ReadACK, 108 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTCPSocket_ReadACK,
109 OnPluginDispatcherMessageReceived(msg)) 109 OnPluginDispatcherMessageReceived(msg))
110 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTCPSocket_WriteACK, 110 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTCPSocket_WriteACK,
111 OnPluginDispatcherMessageReceived(msg)) 111 OnPluginDispatcherMessageReceived(msg))
112 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_RecvFromACK, 112 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_RecvFromACK,
113 OnPluginDispatcherMessageReceived(msg)) 113 OnPluginDispatcherMessageReceived(msg))
114 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_SendToACK, 114 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_SendToACK,
115 OnPluginDispatcherMessageReceived(msg)) 115 OnPluginDispatcherMessageReceived(msg))
116 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_BindACK, 116 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_BindACK,
117 OnPluginDispatcherMessageReceived(msg)) 117 OnPluginDispatcherMessageReceived(msg))
118 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTalk_GetPermissionACK,
119 OnPluginDispatcherMessageReceived(msg))
120 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBHostResolver_ResolveACK, 118 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBHostResolver_ResolveACK,
121 OnPluginDispatcherMessageReceived(msg)) 119 OnPluginDispatcherMessageReceived(msg))
122 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBNetworkMonitor_NetworkList, 120 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBNetworkMonitor_NetworkList,
123 OnPluginDispatcherMessageReceived(msg)) 121 OnPluginDispatcherMessageReceived(msg))
124 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashDeviceID_GetReply, 122 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashDeviceID_GetReply,
125 OnPluginDispatcherMessageReceived(msg)) 123 OnPluginDispatcherMessageReceived(msg))
126 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState) 124 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState)
127 IPC_END_MESSAGE_MAP() 125 IPC_END_MESSAGE_MAP()
128 return true; 126 return true;
129 } 127 }
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 418
421 // plugin() is NULL when in-process. Which is fine, because this is 419 // plugin() is NULL when in-process. Which is fine, because this is
422 // just a hook for setting the process name. 420 // just a hook for setting the process name.
423 if (GetContentClient()->plugin()) { 421 if (GetContentClient()->plugin()) {
424 GetContentClient()->plugin()->PluginProcessStarted( 422 GetContentClient()->plugin()->PluginProcessStarted(
425 path.BaseName().RemoveExtension().LossyDisplayName()); 423 path.BaseName().RemoveExtension().LossyDisplayName());
426 } 424 }
427 } 425 }
428 426
429 } // namespace content 427 } // namespace content
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ppapi/api/private/ppb_talk_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698