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

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

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_helper.h ('k') | webkit/plugins/ppapi/url_request_info_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
-
« no previous file with comments | « webkit/plugins/ppapi/resource_helper.h ('k') | webkit/plugins/ppapi/url_request_info_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698