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

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

Issue 7189045: Make o.o.p. proxy handle PPP_Instance versions 0.4 and 0.5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 9 years, 5 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/plugin_dispatcher_unittest.cc ('k') | ppapi/proxy/plugin_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) 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual ::ppapi::ResourceObjectBase* GetResourceAPI( 59 virtual ::ppapi::ResourceObjectBase* GetResourceAPI(
60 PP_Resource res) OVERRIDE; 60 PP_Resource res) OVERRIDE;
61 virtual ::ppapi::FunctionGroupBase* GetFunctionAPI( 61 virtual ::ppapi::FunctionGroupBase* GetFunctionAPI(
62 PP_Instance inst, 62 PP_Instance inst,
63 pp::proxy::InterfaceID id) OVERRIDE; 63 pp::proxy::InterfaceID id) OVERRIDE;
64 virtual PP_Instance GetInstanceForResource(PP_Resource resource) OVERRIDE; 64 virtual PP_Instance GetInstanceForResource(PP_Resource resource) OVERRIDE;
65 65
66 private: 66 private:
67 friend struct DefaultSingletonTraits<PluginResourceTracker>; 67 friend struct DefaultSingletonTraits<PluginResourceTracker>;
68 friend class PluginResourceTrackerTest; 68 friend class PluginResourceTrackerTest;
69 friend class PluginProxyTest; 69 friend class PluginProxyTestHarness;
70 70
71 PluginResourceTracker(); 71 PluginResourceTracker();
72 virtual ~PluginResourceTracker(); 72 virtual ~PluginResourceTracker();
73 73
74 struct ResourceInfo { 74 struct ResourceInfo {
75 ResourceInfo(); 75 ResourceInfo();
76 ResourceInfo(int ref_count, linked_ptr<PluginResource> r); 76 ResourceInfo(int ref_count, linked_ptr<PluginResource> r);
77 ResourceInfo(const ResourceInfo& other); 77 ResourceInfo(const ResourceInfo& other);
78 ~ResourceInfo(); 78 ~ResourceInfo();
79 79
(...skipping 18 matching lines...) Expand all
98 // duplicates. 98 // duplicates.
99 PP_Resource last_resource_id_; 99 PP_Resource last_resource_id_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker); 101 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker);
102 }; 102 };
103 103
104 } // namespace proxy 104 } // namespace proxy
105 } // namespace pp 105 } // namespace pp
106 106
107 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ 107 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_dispatcher_unittest.cc ('k') | ppapi/proxy/plugin_var_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698