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

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

Issue 10532162: Rename IPC Sender and Listener in ppapi, content/public, and content/renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
« no previous file with comments | « ppapi/proxy/broker_dispatcher.h ('k') | ppapi/proxy/host_dispatcher.h » ('j') | 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 #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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/tracked_objects.h" 15 #include "base/tracked_objects.h"
15 #include "ipc/ipc_channel_proxy.h" 16 #include "ipc/ipc_channel_proxy.h"
16 #include "ppapi/c/pp_instance.h" 17 #include "ppapi/c/pp_instance.h"
17 #include "ppapi/c/pp_module.h" 18 #include "ppapi/c/pp_module.h"
18 #include "ppapi/c/ppp.h" 19 #include "ppapi/c/ppp.h"
19 #include "ppapi/proxy/proxy_channel.h" 20 #include "ppapi/proxy/proxy_channel.h"
20 #include "ppapi/proxy/interface_list.h" 21 #include "ppapi/proxy/interface_list.h"
21 #include "ppapi/proxy/interface_proxy.h" 22 #include "ppapi/proxy/interface_proxy.h"
22 #include "ppapi/proxy/plugin_var_tracker.h" 23 #include "ppapi/proxy/plugin_var_tracker.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 base::MessageLoopProxy* GetIPCMessageLoop(); 67 base::MessageLoopProxy* GetIPCMessageLoop();
67 68
68 // Adds the given filter to the IO thread. Takes ownership of the pointer. 69 // Adds the given filter to the IO thread. Takes ownership of the pointer.
69 void AddIOThreadMessageFilter(IPC::ChannelProxy::MessageFilter* filter); 70 void AddIOThreadMessageFilter(IPC::ChannelProxy::MessageFilter* filter);
70 71
71 // TODO(brettw): What is this comment referring to? 72 // TODO(brettw): What is this comment referring to?
72 // Called if the remote side is declaring to us which interfaces it supports 73 // Called if the remote side is declaring to us which interfaces it supports
73 // so we don't have to query for each one. We'll pre-create proxies for 74 // so we don't have to query for each one. We'll pre-create proxies for
74 // each of the given interfaces. 75 // each of the given interfaces.
75 76
76 // IPC::Channel::Listener implementation. 77 // IPC::Listener implementation.
77 virtual bool OnMessageReceived(const IPC::Message& msg); 78 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
78 79
79 PP_GetInterface_Func local_get_interface() const { 80 PP_GetInterface_Func local_get_interface() const {
80 return local_get_interface_; 81 return local_get_interface_;
81 } 82 }
82 83
83 protected: 84 protected:
84 explicit Dispatcher(PP_GetInterface_Func local_get_interface); 85 explicit Dispatcher(PP_GetInterface_Func local_get_interface);
85 86
86 // Setter for the derived classes to set the appropriate var serialization. 87 // Setter for the derived classes to set the appropriate var serialization.
87 // Takes one reference of the given pointer, which must be on the heap. 88 // Takes one reference of the given pointer, which must be on the heap.
(...skipping 20 matching lines...) Expand all
108 109
109 scoped_refptr<VarSerializationRules> serialization_rules_; 110 scoped_refptr<VarSerializationRules> serialization_rules_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 112 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
112 }; 113 };
113 114
114 } // namespace proxy 115 } // namespace proxy
115 } // namespace ppapi 116 } // namespace ppapi
116 117
117 #endif // PPAPI_PROXY_DISPATCHER_H_ 118 #endif // PPAPI_PROXY_DISPATCHER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/broker_dispatcher.h ('k') | ppapi/proxy/host_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698