| 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_VAR_SERIALIZATION_RULES_H_ | 5 #ifndef PPAPI_PROXY_VAR_SERIALIZATION_RULES_H_ |
| 6 #define PPAPI_PROXY_VAR_SERIALIZATION_RULES_H_ | 6 #define PPAPI_PROXY_VAR_SERIALIZATION_RULES_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_var.h" | 8 #include "ppapi/c/pp_var.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 namespace pp { | 12 namespace ppapi { |
| 13 namespace proxy { | 13 namespace proxy { |
| 14 | 14 |
| 15 class Dispatcher; | 15 class Dispatcher; |
| 16 | 16 |
| 17 // Encapsulates the rules for serializing and deserializing vars to and from | 17 // Encapsulates the rules for serializing and deserializing vars to and from |
| 18 // the local process. The renderer and the plugin process each have separate | 18 // the local process. The renderer and the plugin process each have separate |
| 19 // bookkeeping rules. | 19 // bookkeeping rules. |
| 20 class VarSerializationRules { | 20 class VarSerializationRules { |
| 21 public: | 21 public: |
| 22 virtual ~VarSerializationRules() {} | 22 virtual ~VarSerializationRules() {} |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 // --------------------------------------------------------------------------- | 82 // --------------------------------------------------------------------------- |
| 83 | 83 |
| 84 virtual void ReleaseObjectRef(const PP_Var& var) = 0; | 84 virtual void ReleaseObjectRef(const PP_Var& var) = 0; |
| 85 | 85 |
| 86 protected: | 86 protected: |
| 87 VarSerializationRules() {} | 87 VarSerializationRules() {} |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace proxy | 90 } // namespace proxy |
| 91 } // namespace pp | 91 } // namespace ppapi |
| 92 | 92 |
| 93 #endif // PPAPI_PROXY_VAR_SERIALIZATION_RULES_H_ | 93 #endif // PPAPI_PROXY_VAR_SERIALIZATION_RULES_H_ |
| OLD | NEW |