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

Side by Side Diff: content/renderer/pepper/resource_helper.cc

Issue 21219002: Remove PluginDelegate completely. In a followup I'll rename PepperPluginDelegateImpl to something c… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 PluginDelegate* ResourceHelper::GetPluginDelegate( 32 PepperPluginDelegateImpl* ResourceHelper::GetPluginDelegate(
33 const ::ppapi::Resource* resource) { 33 const ::ppapi::Resource* resource) {
34 PepperPluginInstanceImpl* instance = GetPluginInstance(resource); 34 PepperPluginInstanceImpl* instance = GetPluginInstance(resource);
35 return instance ? instance->delegate() : NULL; 35 return instance ? instance->delegate() : NULL;
36 } 36 }
37 37
38 } // namespace content 38 } // namespace content
39 39
OLDNEW
« no previous file with comments | « content/renderer/pepper/resource_helper.h ('k') | content/renderer/pepper/url_request_info_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698