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

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

Issue 10542150: Actually free plugin implement vars when running out of process when the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/proxy_object_var.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 "ppapi/shared_impl/callback_tracker.h" 9 #include "ppapi/shared_impl/callback_tracker.h"
10 #include "ppapi/shared_impl/ppapi_globals.h" 10 #include "ppapi/shared_impl/ppapi_globals.h"
11 #include "ppapi/shared_impl/resource_tracker.h" 11 #include "ppapi/shared_impl/resource_tracker.h"
12 #include "ppapi/shared_impl/var_tracker.h" 12 #include "ppapi/shared_impl/var_tracker.h"
13 13
14 namespace ppapi { 14 namespace ppapi {
15 15
16 class TestVarTracker : public VarTracker { 16 class TestVarTracker : public VarTracker {
17 public: 17 public:
18 TestVarTracker() {} 18 TestVarTracker() {}
19 virtual ~TestVarTracker() {} 19 virtual ~TestVarTracker() {}
20 virtual ArrayBufferVar* CreateArrayBuffer(uint32 size_in_bytes) OVERRIDE { 20 virtual ArrayBufferVar* CreateArrayBuffer(uint32 size_in_bytes) OVERRIDE {
21 return NULL; 21 return NULL;
22 } 22 }
23 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE {
24 }
23 }; 25 };
24 26
25 // Implementation of PpapiGlobals for tests that don't need either the host- or 27 // Implementation of PpapiGlobals for tests that don't need either the host- or
26 // plugin-specific implementations. 28 // plugin-specific implementations.
27 class TestGlobals : public PpapiGlobals { 29 class TestGlobals : public PpapiGlobals {
28 public: 30 public:
29 TestGlobals(); 31 TestGlobals();
30 TestGlobals(PpapiGlobals::ForTest); 32 TestGlobals(PpapiGlobals::ForTest);
31 virtual ~TestGlobals(); 33 virtual ~TestGlobals();
32 34
(...skipping 23 matching lines...) Expand all
56 ResourceTracker resource_tracker_; 58 ResourceTracker resource_tracker_;
57 TestVarTracker var_tracker_; 59 TestVarTracker var_tracker_;
58 scoped_refptr<CallbackTracker> callback_tracker_; 60 scoped_refptr<CallbackTracker> callback_tracker_;
59 61
60 DISALLOW_COPY_AND_ASSIGN(TestGlobals); 62 DISALLOW_COPY_AND_ASSIGN(TestGlobals);
61 }; 63 };
62 64
63 } // namespace ppapi 65 } // namespace ppapi
64 66
65 #endif // PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ 67 #endif // PPAPI_SHARED_IMPL_TEST_GLOBALS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/proxy_object_var.cc ('k') | ppapi/shared_impl/var_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698