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

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

Issue 7621070: Merge the plugin and impl side of the audio config and input event resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile issues Created 9 years, 4 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 PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_
6 #define PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ 6 #define PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 void set_var_tracker_test_override(PluginVarTracker* t) { 53 void set_var_tracker_test_override(PluginVarTracker* t) {
54 var_tracker_test_override_ = t; 54 var_tracker_test_override_ = t;
55 } 55 }
56 56
57 // TrackerBase. 57 // TrackerBase.
58 virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst, 58 virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst,
59 InterfaceID id) OVERRIDE; 59 InterfaceID id) OVERRIDE;
60 virtual VarTracker* GetVarTracker() OVERRIDE; 60 virtual VarTracker* GetVarTracker() OVERRIDE;
61 virtual ResourceTracker* GetResourceTracker() OVERRIDE; 61 virtual ResourceTracker* GetResourceTracker() OVERRIDE;
62 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE;
62 63
63 protected: 64 protected:
64 // ResourceTracker overrides. 65 // ResourceTracker overrides.
65 virtual PP_Resource AddResource(Resource* object) OVERRIDE; 66 virtual PP_Resource AddResource(Resource* object) OVERRIDE;
66 virtual void RemoveResource(Resource* object) OVERRIDE; 67 virtual void RemoveResource(Resource* object) OVERRIDE;
67 68
68 private: 69 private:
69 friend struct DefaultSingletonTraits<PluginResourceTracker>; 70 friend struct DefaultSingletonTraits<PluginResourceTracker>;
70 friend class PluginResourceTrackerTest; 71 friend class PluginResourceTrackerTest;
71 friend class PluginProxyTestHarness; 72 friend class PluginProxyTestHarness;
(...skipping 16 matching lines...) Expand all
88 typedef std::map<HostResource, PP_Resource> HostResourceMap; 89 typedef std::map<HostResource, PP_Resource> HostResourceMap;
89 HostResourceMap host_resource_map_; 90 HostResourceMap host_resource_map_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker); 92 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker);
92 }; 93 };
93 94
94 } // namespace proxy 95 } // namespace proxy
95 } // namespace ppapi 96 } // namespace ppapi
96 97
97 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ 98 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/plugin_resource_tracker.cc » ('j') | ppapi/proxy/ppb_audio_config_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698