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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 friend class SerializedVarTestConstructor; | 97 friend class SerializedVarTestConstructor; |
98 friend class SerializedVarVectorReceiveInput; | 98 friend class SerializedVarVectorReceiveInput; |
99 | 99 |
100 class PPAPI_PROXY_EXPORT Inner : public base::RefCounted<Inner> { | 100 class PPAPI_PROXY_EXPORT Inner : public base::RefCounted<Inner> { |
101 public: | 101 public: |
102 Inner(); | 102 Inner(); |
103 Inner(VarSerializationRules* serialization_rules); | 103 Inner(VarSerializationRules* serialization_rules); |
104 ~Inner(); | 104 ~Inner(); |
105 | 105 |
106 VarSerializationRules* serialization_rules() { | 106 VarSerializationRules* serialization_rules() { |
107 return serialization_rules_; | 107 return serialization_rules_.get(); |
108 } | 108 } |
109 void set_serialization_rules(VarSerializationRules* serialization_rules) { | 109 void set_serialization_rules(VarSerializationRules* serialization_rules) { |
110 serialization_rules_ = serialization_rules; | 110 serialization_rules_ = serialization_rules; |
111 } | 111 } |
112 | 112 |
113 RawVarDataGraph* raw_var_data() { | 113 RawVarDataGraph* raw_var_data() { |
114 return raw_var_data_.get(); | 114 return raw_var_data_.get(); |
115 } | 115 } |
116 | 116 |
117 // See outer class's declarations above. | 117 // See outer class's declarations above. |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 public: | 470 public: |
471 explicit SerializedVarTestReader(const SerializedVar& var); | 471 explicit SerializedVarTestReader(const SerializedVar& var); |
472 | 472 |
473 PP_Var GetVar() const { return inner_->GetVar(); } | 473 PP_Var GetVar() const { return inner_->GetVar(); } |
474 }; | 474 }; |
475 | 475 |
476 } // namespace proxy | 476 } // namespace proxy |
477 } // namespace ppapi | 477 } // namespace ppapi |
478 | 478 |
479 #endif // PPAPI_PROXY_SERIALIZED_VAR_H_ | 479 #endif // PPAPI_PROXY_SERIALIZED_VAR_H_ |
OLD | NEW |