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

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

Issue 10829199: Add more logging to ChildThread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « content/common/child_thread.cc ('k') | no next file » | 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBHostResolver_ResolveACK, 117 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBHostResolver_ResolveACK,
118 OnPluginDispatcherMessageReceived(msg)) 118 OnPluginDispatcherMessageReceived(msg))
119 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBNetworkMonitor_NetworkList, 119 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBNetworkMonitor_NetworkList,
120 OnPluginDispatcherMessageReceived(msg)) 120 OnPluginDispatcherMessageReceived(msg))
121 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashDeviceID_GetReply, 121 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashDeviceID_GetReply,
122 OnPluginDispatcherMessageReceived(msg)) 122 OnPluginDispatcherMessageReceived(msg))
123 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState) 123 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState)
124 IPC_END_MESSAGE_MAP() 124 IPC_END_MESSAGE_MAP()
125 return true; 125 return true;
126 } 126 }
127
127 void PpapiThread::OnChannelConnected(int32 peer_pid) { 128 void PpapiThread::OnChannelConnected(int32 peer_pid) {
129 ChildThread::OnChannelConnected(peer_pid);
128 #if defined(OS_WIN) 130 #if defined(OS_WIN)
129 if (is_broker_) 131 if (is_broker_)
130 peer_handle_.Set(::OpenProcess(PROCESS_DUP_HANDLE, FALSE, peer_pid)); 132 peer_handle_.Set(::OpenProcess(PROCESS_DUP_HANDLE, FALSE, peer_pid));
131 #endif 133 #endif
132 } 134 }
133 135
134 base::MessageLoopProxy* PpapiThread::GetIPCMessageLoop() { 136 base::MessageLoopProxy* PpapiThread::GetIPCMessageLoop() {
135 return ChildProcess::current()->io_message_loop_proxy(); 137 return ChildProcess::current()->io_message_loop_proxy();
136 } 138 }
137 139
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 ppapi::proxy::PluginGlobals::Get()->set_plugin_name( 376 ppapi::proxy::PluginGlobals::Get()->set_plugin_name(
375 path.BaseName().AsUTF8Unsafe()); 377 path.BaseName().AsUTF8Unsafe());
376 378
377 // plugin() is NULL when in-process. Which is fine, because this is 379 // plugin() is NULL when in-process. Which is fine, because this is
378 // just a hook for setting the process name. 380 // just a hook for setting the process name.
379 if (content::GetContentClient()->plugin()) { 381 if (content::GetContentClient()->plugin()) {
380 content::GetContentClient()->plugin()->PluginProcessStarted( 382 content::GetContentClient()->plugin()->PluginProcessStarted(
381 path.BaseName().RemoveExtension().LossyDisplayName()); 383 path.BaseName().RemoveExtension().LossyDisplayName());
382 } 384 }
383 } 385 }
OLDNEW
« no previous file with comments | « content/common/child_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698