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

Side by Side Diff: content/renderer/pepper/pepper_in_process_router.h

Issue 225903006: PPAPI: Run clang_format.py on content/renderer/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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) 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 "base/callback.h" 5 #include "base/callback.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/proxy/connection.h" 10 #include "ppapi/proxy/connection.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Returns a connection pair for use by a resource proxy. This includes 63 // Returns a connection pair for use by a resource proxy. This includes
64 // the plugin->renderer sender as well as a dummy sender to the browser 64 // the plugin->renderer sender as well as a dummy sender to the browser
65 // process. See the class comment above about the dummy sender. 65 // process. See the class comment above about the dummy sender.
66 ppapi::proxy::Connection GetPluginConnection(PP_Instance instance); 66 ppapi::proxy::Connection GetPluginConnection(PP_Instance instance);
67 67
68 // Handles resource reply messages from the host. 68 // Handles resource reply messages from the host.
69 static bool OnPluginMsgReceived(const IPC::Message& msg); 69 static bool OnPluginMsgReceived(const IPC::Message& msg);
70 70
71 private: 71 private:
72 bool SendToHost(IPC::Message *msg); 72 bool SendToHost(IPC::Message* msg);
73 bool SendToPlugin(IPC::Message *msg); 73 bool SendToPlugin(IPC::Message* msg);
74 void DispatchHostMsg(IPC::Message* msg); 74 void DispatchHostMsg(IPC::Message* msg);
75 void DispatchPluginMsg(IPC::Message* msg); 75 void DispatchPluginMsg(IPC::Message* msg);
76 bool SendToBrowser(IPC::Message *msg); 76 bool SendToBrowser(IPC::Message* msg);
77 77
78 RendererPpapiHostImpl* host_impl_; 78 RendererPpapiHostImpl* host_impl_;
79 79
80 class Channel; 80 class Channel;
81 scoped_ptr<Channel> browser_channel_; 81 scoped_ptr<Channel> browser_channel_;
82 82
83 // Renderer -> plugin channel. 83 // Renderer -> plugin channel.
84 scoped_ptr<Channel> host_to_plugin_router_; 84 scoped_ptr<Channel> host_to_plugin_router_;
85 85
86 // Plugin -> renderer channel. 86 // Plugin -> renderer channel.
87 scoped_ptr<Channel> plugin_to_host_router_; 87 scoped_ptr<Channel> plugin_to_host_router_;
88 88
89 // Pending sync message id. 89 // Pending sync message id.
90 int pending_message_id_; 90 int pending_message_id_;
91 91
92 // Reply deserializer of the pending sync message. 92 // Reply deserializer of the pending sync message.
93 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 93 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
94 94
95 // Reply result of the pending sync message. 95 // Reply result of the pending sync message.
96 bool reply_result_; 96 bool reply_result_;
97 97
98 base::WeakPtrFactory<PepperInProcessRouter> weak_factory_; 98 base::WeakPtrFactory<PepperInProcessRouter> weak_factory_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(PepperInProcessRouter); 100 DISALLOW_COPY_AND_ASSIGN(PepperInProcessRouter);
101 }; 101 };
102 102
103 } // namespace content 103 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_in_process_resource_creation.cc ('k') | content/renderer/pepper/pepper_in_process_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698