OLD | NEW |
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> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void SetSerializationRules(VarSerializationRules* var_serialization_rules); | 85 void SetSerializationRules(VarSerializationRules* var_serialization_rules); |
86 | 86 |
87 // Called when an invalid message is received from the remote site. The | 87 // Called when an invalid message is received from the remote site. The |
88 // default implementation does nothing, derived classes can override. | 88 // default implementation does nothing, derived classes can override. |
89 virtual void OnInvalidMessageReceived(); | 89 virtual void OnInvalidMessageReceived(); |
90 | 90 |
91 private: | 91 private: |
92 friend class PluginDispatcherTest; | 92 friend class PluginDispatcherTest; |
93 | 93 |
94 // Lists all lazily-created interface proxies. | 94 // Lists all lazily-created interface proxies. |
95 scoped_ptr<InterfaceProxy> proxies_[API_ID_COUNT]; | 95 std::unique_ptr<InterfaceProxy> proxies_[API_ID_COUNT]; |
96 | 96 |
97 PP_GetInterface_Func local_get_interface_; | 97 PP_GetInterface_Func local_get_interface_; |
98 | 98 |
99 scoped_refptr<VarSerializationRules> serialization_rules_; | 99 scoped_refptr<VarSerializationRules> serialization_rules_; |
100 | 100 |
101 PpapiPermissions permissions_; | 101 PpapiPermissions permissions_; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 103 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace proxy | 106 } // namespace proxy |
107 } // namespace ppapi | 107 } // namespace ppapi |
108 | 108 |
109 #endif // PPAPI_PROXY_DISPATCHER_H_ | 109 #endif // PPAPI_PROXY_DISPATCHER_H_ |
OLD | NEW |