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

Unified Diff: webkit/plugins/ppapi/resource_helper.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.cc ('k') | webkit/plugins/ppapi/resource_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/resource_helper.h
===================================================================
--- webkit/plugins/ppapi/resource_helper.h (revision 213561)
+++ webkit/plugins/ppapi/resource_helper.h (working copy)
@@ -1,55 +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 WEBKIT_PLUGINS_PPAPI_RESOURCE_HELPER_H_
-#define WEBKIT_PLUGINS_PPAPI_RESOURCE_HELPER_H_
-
-#include "base/basictypes.h"
-#include "ppapi/c/pp_instance.h"
-#include "ppapi/c/pp_resource.h"
-#include "webkit/plugins/webkit_plugins_export.h"
-
-namespace ppapi {
-class Resource;
-}
-
-namespace webkit {
-namespace ppapi {
-
-class PluginInstanceImpl;
-class PluginModule;
-class PluginDelegate;
-
-// Helper functions for Resoruce implementations.
-//
-// This is specifically not designed to be a base class that derives from
-// ppapi::Resource to avoid diamond inheritance if most of a resource class
-// is implemented in the shared_impl (to share code with the proxy).
-class ResourceHelper {
- public:
- // Returns the instance implementation object for the given resource, or NULL
- // if the resource has outlived its instance.
- static PluginInstanceImpl* GetPluginInstance(
- const ::ppapi::Resource* resource);
-
- // Returns the module for the given resource, or NULL if the resource has
- // outlived its instance.
- WEBKIT_PLUGINS_EXPORT static PluginModule* GetPluginModule(
- const ::ppapi::Resource* resource);
-
- // Returns the plugin delegate for the given resource, or NULL if the
- // resource has outlived its instance.
- static PluginDelegate* GetPluginDelegate(const ::ppapi::Resource* resource);
-
- // Returns the instance implementation object for the pp_instance.
- static PluginInstanceImpl* PPInstanceToPluginInstance(PP_Instance instance);
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceHelper);
-};
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_IMPL_HELPER_H_
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.cc ('k') | webkit/plugins/ppapi/resource_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698