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

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

Issue 9006055: Move the tracked completion callback code into shared impl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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 #include "ppapi/shared_impl/test_globals.h" 5 #include "ppapi/shared_impl/test_globals.h"
6 6
7 namespace ppapi { 7 namespace ppapi {
8 8
9 TestGlobals::TestGlobals() : ppapi::PpapiGlobals() { 9 TestGlobals::TestGlobals() : ppapi::PpapiGlobals() {
10 callback_tracker_ = new CallbackTracker;
viettrungluu 2011/12/29 03:45:27 -> initializer list?
10 } 11 }
11 12
12 TestGlobals::~TestGlobals() { 13 TestGlobals::~TestGlobals() {
13 } 14 }
14 15
15 ResourceTracker* TestGlobals::GetResourceTracker() { 16 ResourceTracker* TestGlobals::GetResourceTracker() {
16 return &resource_tracker_; 17 return &resource_tracker_;
17 } 18 }
18 19
19 VarTracker* TestGlobals::GetVarTracker() { 20 VarTracker* TestGlobals::GetVarTracker() {
20 return &var_tracker_; 21 return &var_tracker_;
21 } 22 }
22 23
24 CallbackTracker* TestGlobals::GetCallbackTrackerForInstance(
25 PP_Instance /* instance */) {
viettrungluu 2011/12/29 03:45:27 ...
26 return callback_tracker_.get();
27 }
28
23 FunctionGroupBase* TestGlobals::GetFunctionAPI(PP_Instance inst, ApiID id) { 29 FunctionGroupBase* TestGlobals::GetFunctionAPI(PP_Instance inst, ApiID id) {
24 return NULL; 30 return NULL;
25 } 31 }
26 32
27 PP_Module TestGlobals::GetModuleForInstance(PP_Instance instance) { 33 PP_Module TestGlobals::GetModuleForInstance(PP_Instance instance) {
28 return 0; 34 return 0;
29 } 35 }
30 36
31 } // namespace ppapi 37 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698