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

Side by Side Diff: ppapi/proxy/dispatcher.h

Issue 5598010: Convert over to channel handles (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed up bad whitespace Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef PPAPI_PROXY_DISPATCHER_H_ 5 #ifndef PPAPI_PROXY_DISPATCHER_H_
6 #define PPAPI_PROXY_DISPATCHER_H_ 6 #define PPAPI_PROXY_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class Dispatcher : public IPC::Channel::Listener, 55 class Dispatcher : public IPC::Channel::Listener,
56 public IPC::Message::Sender { 56 public IPC::Message::Sender {
57 public: 57 public:
58 typedef const void* (*GetInterfaceFunc)(const char*); 58 typedef const void* (*GetInterfaceFunc)(const char*);
59 typedef int32_t (*InitModuleFunc)(PP_Module, GetInterfaceFunc); 59 typedef int32_t (*InitModuleFunc)(PP_Module, GetInterfaceFunc);
60 typedef void (*ShutdownModuleFunc)(); 60 typedef void (*ShutdownModuleFunc)();
61 61
62 ~Dispatcher(); 62 ~Dispatcher();
63 63
64 bool InitWithChannel(MessageLoop* ipc_message_loop, 64 bool InitWithChannel(MessageLoop* ipc_message_loop,
65 const std::string& channel_name, 65 const IPC::ChannelHandle& channel_handle,
66 bool is_client, 66 bool is_client,
67 base::WaitableEvent* shutdown_event); 67 base::WaitableEvent* shutdown_event);
68 68
69 // Returns true if the dispatcher is on the plugin side, or false if it's the 69 // Returns true if the dispatcher is on the plugin side, or false if it's the
70 // browser side. 70 // browser side.
71 virtual bool IsPlugin() const = 0; 71 virtual bool IsPlugin() const = 0;
72 72
73 VarSerializationRules* serialization_rules() const { 73 VarSerializationRules* serialization_rules() const {
74 return serialization_rules_.get(); 74 return serialization_rules_.get();
75 } 75 }
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 scoped_ptr<VarSerializationRules> serialization_rules_; 190 scoped_ptr<VarSerializationRules> serialization_rules_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 192 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
193 }; 193 };
194 194
195 } // namespace proxy 195 } // namespace proxy
196 } // namespace pp 196 } // namespace pp
197 197
198 #endif // PPAPI_PROXY_DISPATCHER_H_ 198 #endif // PPAPI_PROXY_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698