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

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

Issue 8527020: Cleanup: Remove unneeded forward declarations in ppapi. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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.h ('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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "ppapi/c/pp_completion_callback.h" 13 #include "ppapi/c/pp_completion_callback.h"
14 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/c/pp_stdint.h" 15 #include "ppapi/c/pp_stdint.h"
16 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_var.h" 17 #include "ppapi/c/pp_var.h"
18 #include "ppapi/proxy/ppapi_proxy_export.h" 18 #include "ppapi/proxy/ppapi_proxy_export.h"
19 #include "ppapi/shared_impl/host_resource.h" 19 #include "ppapi/shared_impl/host_resource.h"
20 #include "ppapi/shared_impl/resource_tracker.h" 20 #include "ppapi/shared_impl/resource_tracker.h"
21 21
22 template<typename T> struct DefaultSingletonTraits; 22 template<typename T> struct DefaultSingletonTraits;
23 23
24 namespace ppapi { 24 namespace ppapi {
25 25
26 class Var;
27
28 namespace proxy { 26 namespace proxy {
29 27
30 class PluginDispatcher;
31
32 class PPAPI_PROXY_EXPORT PluginResourceTracker : public ResourceTracker { 28 class PPAPI_PROXY_EXPORT PluginResourceTracker : public ResourceTracker {
33 public: 29 public:
34 PluginResourceTracker(); 30 PluginResourceTracker();
35 virtual ~PluginResourceTracker(); 31 virtual ~PluginResourceTracker();
36 32
37 // Given a host resource, maps it to an existing plugin resource ID if it 33 // Given a host resource, maps it to an existing plugin resource ID if it
38 // exists, or returns 0 on failure. 34 // exists, or returns 0 on failure.
39 PP_Resource PluginResourceForHostResource( 35 PP_Resource PluginResourceForHostResource(
40 const HostResource& resource) const; 36 const HostResource& resource) const;
41 37
(...skipping 10 matching lines...) Expand all
52 // The global lock for the plugin side of the proxy. 48 // The global lock for the plugin side of the proxy.
53 base::Lock proxy_lock_; 49 base::Lock proxy_lock_;
54 50
55 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker); 51 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker);
56 }; 52 };
57 53
58 } // namespace proxy 54 } // namespace proxy
59 } // namespace ppapi 55 } // namespace ppapi
60 56
61 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ 57 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.h ('k') | ppapi/proxy/plugin_var_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698