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_SERIALIZED_VAR_H_ | 5 #ifndef PPAPI_PROXY_SERIALIZED_VAR_H_ |
6 #define PPAPI_PROXY_SERIALIZED_VAR_H_ | 6 #define PPAPI_PROXY_SERIALIZED_VAR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 friend class SerializedVarTestConstructor; | 87 friend class SerializedVarTestConstructor; |
88 friend class SerializedVarVectorReceiveInput; | 88 friend class SerializedVarVectorReceiveInput; |
89 | 89 |
90 class PPAPI_PROXY_EXPORT Inner : public base::RefCounted<Inner> { | 90 class PPAPI_PROXY_EXPORT Inner : public base::RefCounted<Inner> { |
91 public: | 91 public: |
92 Inner(); | 92 Inner(); |
93 Inner(VarSerializationRules* serialization_rules); | 93 Inner(VarSerializationRules* serialization_rules); |
94 ~Inner(); | 94 ~Inner(); |
95 | 95 |
96 VarSerializationRules* serialization_rules() { | 96 VarSerializationRules* serialization_rules() { |
97 return serialization_rules_; | 97 return serialization_rules_.get(); |
98 } | 98 } |
99 void set_serialization_rules(VarSerializationRules* serialization_rules) { | 99 void set_serialization_rules(VarSerializationRules* serialization_rules) { |
100 serialization_rules_ = serialization_rules; | 100 serialization_rules_ = serialization_rules; |
101 } | 101 } |
102 | 102 |
103 // See outer class's declarations above. | 103 // See outer class's declarations above. |
104 PP_Var GetVar(); | 104 PP_Var GetVar(); |
105 void SetVar(PP_Var var); | 105 void SetVar(PP_Var var); |
106 | 106 |
107 // For the SerializedVarTestConstructor, this writes the Var value as if | 107 // For the SerializedVarTestConstructor, this writes the Var value as if |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 // The "incomplete" var is the one sent over the wire. Strings and object | 455 // The "incomplete" var is the one sent over the wire. Strings and object |
456 // IDs have not yet been converted, so this is the thing that tests will | 456 // IDs have not yet been converted, so this is the thing that tests will |
457 // actually want to check. | 457 // actually want to check. |
458 PP_Var GetVar() const { return inner_->GetVar(); } | 458 PP_Var GetVar() const { return inner_->GetVar(); } |
459 }; | 459 }; |
460 | 460 |
461 } // namespace proxy | 461 } // namespace proxy |
462 } // namespace ppapi | 462 } // namespace ppapi |
463 | 463 |
464 #endif // PPAPI_PROXY_SERIALIZED_VAR_H_ | 464 #endif // PPAPI_PROXY_SERIALIZED_VAR_H_ |
OLD | NEW |