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

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

Issue 630883002: replace OVERRIDE and FINAL with override and final in ppapi/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ppapi/proxy/plugin_resource_callback.h ('k') | ppapi/proxy/plugin_resource_var.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_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 18 matching lines...) Expand all
29 PluginResourceTracker(); 29 PluginResourceTracker();
30 virtual ~PluginResourceTracker(); 30 virtual ~PluginResourceTracker();
31 31
32 // Given a host resource, maps it to an existing plugin resource ID if it 32 // Given a host resource, maps it to an existing plugin resource ID if it
33 // exists, or returns 0 on failure. 33 // exists, or returns 0 on failure.
34 PP_Resource PluginResourceForHostResource( 34 PP_Resource PluginResourceForHostResource(
35 const HostResource& resource) const; 35 const HostResource& resource) const;
36 36
37 protected: 37 protected:
38 // ResourceTracker overrides. 38 // ResourceTracker overrides.
39 virtual PP_Resource AddResource(Resource* object) OVERRIDE; 39 virtual PP_Resource AddResource(Resource* object) override;
40 virtual void RemoveResource(Resource* object) OVERRIDE; 40 virtual void RemoveResource(Resource* object) override;
41 41
42 private: 42 private:
43 // Map of host instance/resource pairs to a plugin resource ID. 43 // Map of host instance/resource pairs to a plugin resource ID.
44 typedef std::map<HostResource, PP_Resource> HostResourceMap; 44 typedef std::map<HostResource, PP_Resource> HostResourceMap;
45 HostResourceMap host_resource_map_; 45 HostResourceMap host_resource_map_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker); 47 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker);
48 }; 48 };
49 49
50 } // namespace proxy 50 } // namespace proxy
51 } // namespace ppapi 51 } // namespace ppapi
52 52
53 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ 53 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource_callback.h ('k') | ppapi/proxy/plugin_resource_var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698