Index: webkit/plugins/ppapi/resource_helper.cc |
=================================================================== |
--- webkit/plugins/ppapi/resource_helper.cc (revision 213561) |
+++ webkit/plugins/ppapi/resource_helper.cc (working copy) |
@@ -1,41 +0,0 @@ |
-// Copyright (c) 2010 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. |
- |
-#include "webkit/plugins/ppapi/resource_helper.h" |
- |
-#include "base/logging.h" |
-#include "ppapi/shared_impl/resource.h" |
-#include "webkit/plugins/ppapi/host_globals.h" |
-#include "webkit/plugins/ppapi/plugin_module.h" |
-#include "webkit/plugins/ppapi/ppapi_plugin_instance_impl.h" |
- |
-namespace webkit { |
-namespace ppapi { |
- |
-// static |
-PluginInstanceImpl* ResourceHelper::GetPluginInstance( |
- const ::ppapi::Resource* resource) { |
- return PPInstanceToPluginInstance(resource->pp_instance()); |
-} |
- |
-PluginInstanceImpl* ResourceHelper::PPInstanceToPluginInstance( |
- PP_Instance instance) { |
- return HostGlobals::Get()->GetInstance(instance); |
-} |
- |
-PluginModule* ResourceHelper::GetPluginModule( |
- const ::ppapi::Resource* resource) { |
- PluginInstanceImpl* instance = GetPluginInstance(resource); |
- return instance ? instance->module() : NULL; |
-} |
- |
-PluginDelegate* ResourceHelper::GetPluginDelegate( |
- const ::ppapi::Resource* resource) { |
- PluginInstanceImpl* instance = GetPluginInstance(resource); |
- return instance ? instance->delegate() : NULL; |
-} |
- |
-} // namespace ppapi |
-} // namespace webkit |
- |