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

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

Issue 11411357: PPB_HostResolver_Private is switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed MockPluginDelegate. 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
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTCPSocket_ReadACK, 119 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTCPSocket_ReadACK,
120 OnPluginDispatcherMessageReceived(msg)) 120 OnPluginDispatcherMessageReceived(msg))
121 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTCPSocket_WriteACK, 121 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBTCPSocket_WriteACK,
122 OnPluginDispatcherMessageReceived(msg)) 122 OnPluginDispatcherMessageReceived(msg))
123 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_RecvFromACK, 123 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_RecvFromACK,
124 OnPluginDispatcherMessageReceived(msg)) 124 OnPluginDispatcherMessageReceived(msg))
125 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_SendToACK, 125 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_SendToACK,
126 OnPluginDispatcherMessageReceived(msg)) 126 OnPluginDispatcherMessageReceived(msg))
127 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_BindACK, 127 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBUDPSocket_BindACK,
128 OnPluginDispatcherMessageReceived(msg)) 128 OnPluginDispatcherMessageReceived(msg))
129 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBHostResolver_ResolveACK,
130 OnPluginDispatcherMessageReceived(msg))
131 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBNetworkMonitor_NetworkList, 129 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBNetworkMonitor_NetworkList,
132 OnPluginDispatcherMessageReceived(msg)) 130 OnPluginDispatcherMessageReceived(msg))
133 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState) 131 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState)
134 IPC_END_MESSAGE_MAP() 132 IPC_END_MESSAGE_MAP()
135 return true; 133 return true;
136 } 134 }
137 135
138 void PpapiThread::OnChannelConnected(int32 peer_pid) { 136 void PpapiThread::OnChannelConnected(int32 peer_pid) {
139 ChildThread::OnChannelConnected(peer_pid); 137 ChildThread::OnChannelConnected(peer_pid);
140 #if defined(OS_WIN) 138 #if defined(OS_WIN)
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 437
440 // plugin() is NULL when in-process. Which is fine, because this is 438 // plugin() is NULL when in-process. Which is fine, because this is
441 // just a hook for setting the process name. 439 // just a hook for setting the process name.
442 if (GetContentClient()->plugin()) { 440 if (GetContentClient()->plugin()) {
443 GetContentClient()->plugin()->PluginProcessStarted( 441 GetContentClient()->plugin()->PluginProcessStarted(
444 path.BaseName().RemoveExtension().LossyDisplayName()); 442 path.BaseName().RemoveExtension().LossyDisplayName());
445 } 443 }
446 } 444 }
447 445
448 } // namespace content 446 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698