Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: ppapi/proxy/serialized_var.h

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/proxy/plugin_var_tracker_unittest.cc ('k') | ppapi/thunk/ppb_file_chooser_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_var_tracker_unittest.cc ('k') | ppapi/thunk/ppb_file_chooser_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698