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

Unified Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

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/ppapi_interface_factory.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppapi_plugin_instance.h
===================================================================
--- webkit/plugins/ppapi/ppapi_plugin_instance.h (revision 213561)
+++ webkit/plugins/ppapi/ppapi_plugin_instance.h (working copy)
@@ -1,105 +0,0 @@
-// Copyright (c) 2013 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.
-
-#ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
-#define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
-
-#include "base/basictypes.h"
-#include "base/process/process_handle.h"
-#include "ppapi/c/pp_resource.h"
-#include "ppapi/c/private/ppb_instance_private.h"
-#include "webkit/plugins/webkit_plugins_export.h"
-
-class GURL;
-
-namespace base {
-class FilePath;
-}
-
-namespace content {
-class RenderView;
-}
-
-namespace gfx {
-class ImageSkia;
-class Rect;
-}
-
-namespace ppapi {
-class PpapiPermissions;
-class VarTracker;
-struct URLRequestInfoData;
-}
-
-namespace IPC {
-struct ChannelHandle;
-}
-
-namespace WebKit {
-class WebPluginContainer;
-}
-
-namespace webkit {
-namespace ppapi {
-
-class PluginInstance {
- public:
- static WEBKIT_PLUGINS_EXPORT PluginInstance* Get(PP_Instance instance_id);
-
- virtual ~PluginInstance() {}
-
- virtual content::RenderView* GetRenderView() = 0;
-
- virtual WebKit::WebPluginContainer* GetContainer() = 0;
-
- virtual ::ppapi::VarTracker* GetVarTracker() = 0;
-
- virtual const GURL& GetPluginURL() = 0;
-
- // Returns the location of this module.
- virtual base::FilePath GetModulePath() = 0;
-
- // Returns a reference to a file with the given path.
- // The returned object will have a refcount of 0 (just like "new").
- virtual PP_Resource CreateExternalFileReference(
- const base::FilePath& external_file_path) = 0;
-
- // Creates a PPB_ImageData given a Skia image.
- virtual PP_Resource CreateImage(gfx::ImageSkia* source_image,
- float scale) = 0;
-
- // Switches this instance with one that uses the out of process IPC proxy.
- virtual PP_ExternalPluginResult SwitchToOutOfProcessProxy(
- const base::FilePath& file_path,
- ::ppapi::PpapiPermissions permissions,
- const IPC::ChannelHandle& channel_handle,
- base::ProcessId plugin_pid,
- int plugin_child_id) = 0;
-
- // Set this to true if plugin thinks it will always be on top. This allows us
- // to use a more optimized painting path in some cases.
- virtual void SetAlwaysOnTop(bool on_top) = 0;
-
- // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe
- // or embedded in a page).
- virtual bool IsFullPagePlugin() = 0;
-
- // Switches between fullscreen and normal mode. If |delay_report| is set to
- // false, it may report the new state through DidChangeView immediately. If
- // true, it will delay it. When called from the plugin, delay_report should
- // be true to avoid re-entrancy.
- virtual void FlashSetFullscreen(bool fullscreen, bool delay_report) = 0;
-
- virtual bool IsRectTopmost(const gfx::Rect& rect) = 0;
-
- virtual int32_t Navigate(const ::ppapi::URLRequestInfoData& request,
- const char* target,
- bool from_user_action) = 0;
-
-};
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
« no previous file with comments | « webkit/plugins/ppapi/ppapi_interface_factory.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698