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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/string_proxy_var.h

Issue 9022021: Proxy PPB_ArrayBuffer_Dev, make them work over Messaging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comment. Created 8 years, 11 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
OLDNEW
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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_STRING_PROXY_VAR_H_ 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_STRING_PROXY_VAR_H_
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_STRING_PROXY_VAR_H_ 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_STRING_PROXY_VAR_H_
7 7
8 #include "native_client/src/include/nacl_memory.h" 8 #include "native_client/src/include/nacl_memory.h"
9 #include "native_client/src/shared/ppapi_proxy/proxy_var.h" 9 #include "native_client/src/shared/ppapi_proxy/proxy_var.h"
10 10
(...skipping 19 matching lines...) Expand all
30 if (proxy_var == NULL || proxy_var->pp_var_type() != PP_VARTYPE_STRING) { 30 if (proxy_var == NULL || proxy_var->pp_var_type() != PP_VARTYPE_STRING) {
31 scoped_refptr<StringProxyVar> string_var; 31 scoped_refptr<StringProxyVar> string_var;
32 return string_var; 32 return string_var;
33 } 33 }
34 return scoped_refptr<StringProxyVar>( 34 return scoped_refptr<StringProxyVar>(
35 static_cast<StringProxyVar*>(proxy_var.get())); 35 static_cast<StringProxyVar*>(proxy_var.get()));
36 } 36 }
37 37
38 private: 38 private:
39 std::string contents_; 39 std::string contents_;
40
41 StringProxyVar(); // Not implemented, do not use.
42 }; 40 };
43 41
44 typedef scoped_refptr<StringProxyVar> SharedStringProxyVar; 42 typedef scoped_refptr<StringProxyVar> SharedStringProxyVar;
45 43
46 } // namespace ppapi_proxy 44 } // namespace ppapi_proxy
47 45
48 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_STRING_PROXY_VAR_H_ 46 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_STRING_PROXY_VAR_H_
OLDNEW
« no previous file with comments | « ppapi/native_client/src/shared/ppapi_proxy/proxy_var_cache.h ('k') | ppapi/tests/test_post_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698