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_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> |
(...skipping 24 matching lines...) Expand all Loading... |
35 // Plugin side | Browser side | 35 // Plugin side | Browser side |
36 // -------------------------------------|-------------------------------------- | 36 // -------------------------------------|-------------------------------------- |
37 // | | 37 // | |
38 // "Source" | "Target" | 38 // "Source" | "Target" |
39 // InterfaceProxy ----------------------> InterfaceProxy | 39 // InterfaceProxy ----------------------> InterfaceProxy |
40 // | | 40 // | |
41 // | | 41 // | |
42 // "Target" | "Source" | 42 // "Target" | "Source" |
43 // InterfaceProxy <---------------------- InterfaceProxy | 43 // InterfaceProxy <---------------------- InterfaceProxy |
44 // | | 44 // | |
45 class Dispatcher : public ProxyChannel { | 45 class PPAPI_PROXY_EXPORT Dispatcher : public ProxyChannel { |
46 public: | 46 public: |
47 typedef const void* (*GetInterfaceFunc)(const char*); | 47 typedef const void* (*GetInterfaceFunc)(const char*); |
48 typedef int32_t (*InitModuleFunc)(PP_Module, GetInterfaceFunc); | 48 typedef int32_t (*InitModuleFunc)(PP_Module, GetInterfaceFunc); |
49 | 49 |
50 virtual ~Dispatcher(); | 50 virtual ~Dispatcher(); |
51 | 51 |
52 // Returns true if the dispatcher is on the plugin side, or false if it's the | 52 // Returns true if the dispatcher is on the plugin side, or false if it's the |
53 // browser side. | 53 // browser side. |
54 virtual bool IsPlugin() const = 0; | 54 virtual bool IsPlugin() const = 0; |
55 | 55 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 scoped_ptr<VarSerializationRules> serialization_rules_; | 115 scoped_ptr<VarSerializationRules> serialization_rules_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 117 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace proxy | 120 } // namespace proxy |
121 } // namespace ppapi | 121 } // namespace ppapi |
122 | 122 |
123 #endif // PPAPI_PROXY_DISPATCHER_H_ | 123 #endif // PPAPI_PROXY_DISPATCHER_H_ |
OLD | NEW |