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

Side by Side Diff: ppapi/shared_impl/test_globals.h

Issue 26564009: [PPAPI] It is now possible to pass filesystems from JavaScript to NaCl modules. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments. Created 7 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/raw_var_data.cc ('k') | ppapi/shared_impl/var_tracker.h » ('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_SHARED_IMPL_TEST_GLOBALS_H_ 5 #ifndef PPAPI_SHARED_IMPL_TEST_GLOBALS_H_
6 #define PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ 6 #define PPAPI_SHARED_IMPL_TEST_GLOBALS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 #include "ppapi/shared_impl/callback_tracker.h" 10 #include "ppapi/shared_impl/callback_tracker.h"
11 #include "ppapi/shared_impl/ppapi_globals.h" 11 #include "ppapi/shared_impl/ppapi_globals.h"
12 #include "ppapi/shared_impl/resource_tracker.h" 12 #include "ppapi/shared_impl/resource_tracker.h"
13 #include "ppapi/shared_impl/var_tracker.h" 13 #include "ppapi/shared_impl/var_tracker.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
16 16
17 class TestVarTracker : public VarTracker { 17 class TestVarTracker : public VarTracker {
18 public: 18 public:
19 TestVarTracker() : VarTracker(THREAD_SAFE) {} 19 TestVarTracker() : VarTracker(THREAD_SAFE) {}
20 virtual ~TestVarTracker() {} 20 virtual ~TestVarTracker() {}
21 virtual PP_Var MakeResourcePPVarFromMessage(
22 PP_Instance instance,
23 const IPC::Message& creation_message,
24 int pending_renderer_id,
25 int pending_browser_id) OVERRIDE {
26 return PP_MakeNull();
27 }
21 virtual ResourceVar* MakeResourceVar(PP_Resource pp_resource) OVERRIDE { 28 virtual ResourceVar* MakeResourceVar(PP_Resource pp_resource) OVERRIDE {
22 return NULL; 29 return NULL;
23 } 30 }
24 virtual ArrayBufferVar* CreateArrayBuffer(uint32 size_in_bytes) OVERRIDE { 31 virtual ArrayBufferVar* CreateArrayBuffer(uint32 size_in_bytes) OVERRIDE {
25 return NULL; 32 return NULL;
26 } 33 }
27 virtual ArrayBufferVar* CreateShmArrayBuffer( 34 virtual ArrayBufferVar* CreateShmArrayBuffer(
28 uint32 size_in_bytes, 35 uint32 size_in_bytes,
29 base::SharedMemoryHandle handle) OVERRIDE { 36 base::SharedMemoryHandle handle) OVERRIDE {
30 return NULL; 37 return NULL;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 ResourceTracker resource_tracker_; 89 ResourceTracker resource_tracker_;
83 TestVarTracker var_tracker_; 90 TestVarTracker var_tracker_;
84 scoped_refptr<CallbackTracker> callback_tracker_; 91 scoped_refptr<CallbackTracker> callback_tracker_;
85 92
86 DISALLOW_COPY_AND_ASSIGN(TestGlobals); 93 DISALLOW_COPY_AND_ASSIGN(TestGlobals);
87 }; 94 };
88 95
89 } // namespace ppapi 96 } // namespace ppapi
90 97
91 #endif // PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ 98 #endif // PPAPI_SHARED_IMPL_TEST_GLOBALS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/raw_var_data.cc ('k') | ppapi/shared_impl/var_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698