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

Unified Diff: content/renderer/pepper/plugin_delegate.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 | « content/renderer/pepper/pepper_video_source_host.cc ('k') | content/renderer/pepper/plugin_module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/plugin_delegate.h
===================================================================
--- content/renderer/pepper/plugin_delegate.h (revision 213482)
+++ content/renderer/pepper/plugin_delegate.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
-#define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
+#ifndef CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_H_
+#define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_H_
#include <string>
#include <vector>
@@ -16,6 +16,7 @@
#include "base/process.h"
#include "base/sync_socket.h"
#include "base/time/time.h"
+#include "content/common/content_export.h"
#include "ipc/ipc_platform_file.h"
#include "media/video/capture/video_capture.h"
#include "media/video/video_decode_accelerator.h"
@@ -36,7 +37,6 @@
#include "url/gurl.h"
#include "webkit/common/fileapi/file_system_types.h"
#include "webkit/common/quota/quota_types.h"
-#include "webkit/plugins/webkit_plugins_export.h"
class GURL;
class SkBitmap;
@@ -122,26 +122,6 @@
// PPAPI plugins.
class PluginDelegate {
public:
- // This interface is used for the PluginModule to tell the code in charge of
- // re-using modules which modules currently exist.
- //
- // It is different than the other interfaces, which are scoped to the
- // lifetime of the plugin instance. The implementor of this interface must
- // outlive all plugin modules, and is in practice a singleton
- // (PepperPluginRegistry). This requirement means we can't do the obvious
- // thing and just have a PluginDelegate call for this purpose (when the
- // module is being deleted, we know there are no more PluginInstances that
- // have PluginDelegates).
- class ModuleLifetime {
- public:
- // Notification that the given plugin object is no longer usable. It either
- // indicates the module was deleted, or that it has crashed.
- //
- // This can be called from the module's destructor, so you should not
- // dereference the given pointer.
- virtual void PluginModuleDead(PluginModule* dead_module) = 0;
- };
-
// This class is implemented by the PluginDelegate implementation and is
// designed to manage the lifetime and communication with the proxy's
// HostDispatcher for out-of-process PPAPI plugins.
@@ -193,7 +173,7 @@
virtual TransportDIB* GetTransportDIB() const = 0;
};
- class WEBKIT_PLUGINS_EXPORT PlatformGraphics2D {
+ class CONTENT_EXPORT PlatformGraphics2D {
public:
virtual ~PlatformGraphics2D() {}
@@ -709,4 +689,4 @@
} // namespace ppapi
} // namespace webkit
-#endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
+#endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_H_
« no previous file with comments | « content/renderer/pepper/pepper_video_source_host.cc ('k') | content/renderer/pepper/plugin_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698