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

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

Issue 7535007: Implement PPB_Flash_TCPSocket.InitiateSSL. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make changes according to Wan-Teh's suggestions. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // 67 //
68 // Note that this function is called only for messages from the channel to the 68 // Note that this function is called only for messages from the channel to the
69 // browser process. Messages from the renderer process are sent via a different 69 // browser process. Messages from the renderer process are sent via a different
70 // channel that ends up at Dispatcher::OnMessageReceived. 70 // channel that ends up at Dispatcher::OnMessageReceived.
71 bool PpapiThread::OnMessageReceived(const IPC::Message& msg) { 71 bool PpapiThread::OnMessageReceived(const IPC::Message& msg) {
72 IPC_BEGIN_MESSAGE_MAP(PpapiThread, msg) 72 IPC_BEGIN_MESSAGE_MAP(PpapiThread, msg)
73 IPC_MESSAGE_HANDLER(PpapiMsg_LoadPlugin, OnMsgLoadPlugin) 73 IPC_MESSAGE_HANDLER(PpapiMsg_LoadPlugin, OnMsgLoadPlugin)
74 IPC_MESSAGE_HANDLER(PpapiMsg_CreateChannel, OnMsgCreateChannel) 74 IPC_MESSAGE_HANDLER(PpapiMsg_CreateChannel, OnMsgCreateChannel)
75 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashTCPSocket_ConnectACK, 75 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashTCPSocket_ConnectACK,
76 OnPluginDispatcherMessageReceived(msg)) 76 OnPluginDispatcherMessageReceived(msg))
77 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashTCPSocket_SSLHandshakeACK,
78 OnPluginDispatcherMessageReceived(msg))
77 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashTCPSocket_ReadACK, 79 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashTCPSocket_ReadACK,
78 OnPluginDispatcherMessageReceived(msg)) 80 OnPluginDispatcherMessageReceived(msg))
79 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashTCPSocket_WriteACK, 81 IPC_MESSAGE_HANDLER_GENERIC(PpapiMsg_PPBFlashTCPSocket_WriteACK,
80 OnPluginDispatcherMessageReceived(msg)) 82 OnPluginDispatcherMessageReceived(msg))
81 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState) 83 IPC_MESSAGE_HANDLER(PpapiMsg_SetNetworkState, OnMsgSetNetworkState)
82 IPC_END_MESSAGE_MAP() 84 IPC_END_MESSAGE_MAP()
83 return true; 85 return true;
84 } 86 }
85 87
86 base::MessageLoopProxy* PpapiThread::GetIPCMessageLoop() { 88 base::MessageLoopProxy* PpapiThread::GetIPCMessageLoop() {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 #if defined(OS_POSIX) 292 #if defined(OS_POSIX)
291 // On POSIX, pass the renderer-side FD. 293 // On POSIX, pass the renderer-side FD.
292 handle->socket = base::FileDescriptor(::dup(dispatcher->GetRendererFD()), 294 handle->socket = base::FileDescriptor(::dup(dispatcher->GetRendererFD()),
293 true); 295 true);
294 #endif 296 #endif
295 297
296 // From here, the dispatcher will manage its own lifetime according to the 298 // From here, the dispatcher will manage its own lifetime according to the
297 // lifetime of the attached channel. 299 // lifetime of the attached channel.
298 return true; 300 return true;
299 } 301 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698