| Index: content/renderer/pepper/resource_helper.cc
|
| ===================================================================
|
| --- content/renderer/pepper/resource_helper.cc (revision 214423)
|
| +++ content/renderer/pepper/resource_helper.cc (working copy)
|
| @@ -1,38 +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 "content/renderer/pepper/resource_helper.h"
|
| -
|
| -#include "base/logging.h"
|
| -#include "content/renderer/pepper/host_globals.h"
|
| -#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
|
| -#include "content/renderer/pepper/plugin_module.h"
|
| -#include "ppapi/shared_impl/resource.h"
|
| -
|
| -namespace content {
|
| -
|
| -// static
|
| -PepperPluginInstanceImpl* ResourceHelper::GetPluginInstance(
|
| - const ::ppapi::Resource* resource) {
|
| - return PPInstanceToPluginInstance(resource->pp_instance());
|
| -}
|
| -
|
| -PepperPluginInstanceImpl* ResourceHelper::PPInstanceToPluginInstance(
|
| - PP_Instance instance) {
|
| - return HostGlobals::Get()->GetInstance(instance);
|
| -}
|
| -
|
| -PluginModule* ResourceHelper::GetPluginModule(
|
| - const ::ppapi::Resource* resource) {
|
| - PepperPluginInstanceImpl* instance = GetPluginInstance(resource);
|
| - return instance ? instance->module() : NULL;
|
| -}
|
| -
|
| -PepperHelperImpl* ResourceHelper::GetHelper(const ::ppapi::Resource* resource) {
|
| - PepperPluginInstanceImpl* instance = GetPluginInstance(resource);
|
| - return instance ? instance->helper() : NULL;
|
| -}
|
| -
|
| -} // namespace content
|
| -
|
|
|