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

Unified Diff: ppapi/proxy/plugin_resource.h

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/plugin_resource.h
diff --git a/ppapi/proxy/plugin_resource.h b/ppapi/proxy/plugin_resource.h
deleted file mode 100644
index 298b4cd2cf7081c1072e5731c2426bf86771ad73..0000000000000000000000000000000000000000
--- a/ppapi/proxy/plugin_resource.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PPAPI_PROXY_PLUGIN_RESOURCE_H_
-#define PPAPI_PROXY_PLUGIN_RESOURCE_H_
-
-#include "base/basictypes.h"
-#include "ppapi/c/pp_instance.h"
-#include "ppapi/proxy/plugin_dispatcher.h"
-#include "ppapi/proxy/plugin_resource_tracker.h"
-#include "ppapi/shared_impl/host_resource.h"
-#include "ppapi/shared_impl/resource_object_base.h"
-
-namespace pp {
-namespace proxy {
-
-class PluginResource : public ::ppapi::ResourceObjectBase {
- public:
- PluginResource(const ppapi::HostResource& resource);
- virtual ~PluginResource();
-
- PP_Instance instance() const { return host_resource_.instance(); }
-
- // Returns the host resource ID for sending to the host process.
- const ppapi::HostResource& host_resource() const {
- return host_resource_;
- }
-
- PluginDispatcher* GetDispatcher();
-
- private:
- // The resource ID in the host that this object corresponds to. Inside the
- // plugin we'll remap the resource IDs so we can have many host processes
- // each independently generating resources (which may conflict) but the IDs
- // in the plugin will all be unique.
- ppapi::HostResource host_resource_;
-
- DISALLOW_COPY_AND_ASSIGN(PluginResource);
-};
-
-} // namespace proxy
-} // namespace pp
-
-#endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698