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

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

Issue 7087028: roll clang 131935:132017 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 PluginProxyTest;
70 70
71 PluginResourceTracker(); 71 PluginResourceTracker();
72 ~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
80 ResourceInfo& operator=(const ResourceInfo& other); 80 ResourceInfo& operator=(const ResourceInfo& other);
81 81
82 int ref_count; 82 int ref_count;
(...skipping 15 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

Powered by Google App Engine
This is Rietveld 408576698