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

Unified Diff: content/renderer/pepper/resource_helper.cc

Issue 20777009: A few more cleanups to the pepper code. Dispatch IPCs in the sockets implementations directly by ha… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/resource_helper.cc
===================================================================
--- content/renderer/pepper/resource_helper.cc (revision 215615)
+++ 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
-
« 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