OLD | NEW |
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 #ifndef PPAPI_PROXY_HOST_DISPATCHER_H_ | 5 #ifndef PPAPI_PROXY_HOST_DISPATCHER_H_ |
6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ | 6 #define PPAPI_PROXY_HOST_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace ppapi { | 29 namespace ppapi { |
30 | 30 |
31 struct Preferences; | 31 struct Preferences; |
32 | 32 |
33 namespace proxy { | 33 namespace proxy { |
34 | 34 |
35 class InterfaceProxy; | 35 class InterfaceProxy; |
36 class VarSerialization; | 36 class VarSerialization; |
37 | 37 |
38 class HostDispatcher : public Dispatcher { | 38 class PPAPI_PROXY_EXPORT HostDispatcher : public Dispatcher { |
39 public: | 39 public: |
40 // Constructor for the renderer side. | 40 // Constructor for the renderer side. |
41 // | 41 // |
42 // You must call InitHostWithChannel after the constructor. | 42 // You must call InitHostWithChannel after the constructor. |
43 HostDispatcher(base::ProcessHandle host_process_handle, | 43 HostDispatcher(base::ProcessHandle host_process_handle, |
44 PP_Module module, | 44 PP_Module module, |
45 GetInterfaceFunc local_get_interface); | 45 GetInterfaceFunc local_get_interface); |
46 ~HostDispatcher(); | 46 ~HostDispatcher(); |
47 | 47 |
48 // You must call this function before anything else. Returns true on success. | 48 // You must call this function before anything else. Returns true on success. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 private: | 149 private: |
150 HostDispatcher* dispatcher_; | 150 HostDispatcher* dispatcher_; |
151 | 151 |
152 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); | 152 DISALLOW_COPY_AND_ASSIGN(ScopedModuleReference); |
153 }; | 153 }; |
154 | 154 |
155 } // namespace proxy | 155 } // namespace proxy |
156 } // namespace ppapi | 156 } // namespace ppapi |
157 | 157 |
158 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ | 158 #endif // PPAPI_PROXY_HOST_DISPATCHER_H_ |
OLD | NEW |