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

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

Issue 15806016: Update ppapi/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/proxy/serialized_var.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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/proxy/serialized_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698