| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "content/renderer/pepper/resource_helper.h" | 5 #include "content/renderer/pepper/resource_helper.h" | 
| 6 | 6 | 
| 7 #include "base/logging.h" | 7 #include "base/logging.h" | 
| 8 #include "content/renderer/pepper/host_globals.h" | 8 #include "content/renderer/pepper/host_globals.h" | 
| 9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 
| 10 #include "content/renderer/pepper/plugin_module.h" | 10 #include "content/renderer/pepper/plugin_module.h" | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 22     PP_Instance instance) { | 22     PP_Instance instance) { | 
| 23   return HostGlobals::Get()->GetInstance(instance); | 23   return HostGlobals::Get()->GetInstance(instance); | 
| 24 } | 24 } | 
| 25 | 25 | 
| 26 PluginModule* ResourceHelper::GetPluginModule( | 26 PluginModule* ResourceHelper::GetPluginModule( | 
| 27     const ::ppapi::Resource* resource) { | 27     const ::ppapi::Resource* resource) { | 
| 28   PepperPluginInstanceImpl* instance = GetPluginInstance(resource); | 28   PepperPluginInstanceImpl* instance = GetPluginInstance(resource); | 
| 29   return instance ? instance->module() : NULL; | 29   return instance ? instance->module() : NULL; | 
| 30 } | 30 } | 
| 31 | 31 | 
| 32 PepperPluginDelegateImpl* ResourceHelper::GetPluginDelegate( | 32 PepperHelperImpl* ResourceHelper::GetHelper(const ::ppapi::Resource* resource) { | 
| 33     const ::ppapi::Resource* resource) { |  | 
| 34   PepperPluginInstanceImpl* instance = GetPluginInstance(resource); | 33   PepperPluginInstanceImpl* instance = GetPluginInstance(resource); | 
| 35   return instance ? instance->delegate() : NULL; | 34   return instance ? instance->helper() : NULL; | 
| 36 } | 35 } | 
| 37 | 36 | 
| 38 }  // namespace content | 37 }  // namespace content | 
| 39 | 38 | 
| OLD | NEW | 
|---|