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

Unified Diff: webkit/plugins/npapi/webplugin_page_delegate.h

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac 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
Index: webkit/plugins/npapi/webplugin_page_delegate.h
===================================================================
--- webkit/plugins/npapi/webplugin_page_delegate.h (revision 212369)
+++ webkit/plugins/npapi/webplugin_page_delegate.h (working copy)
@@ -1,73 +0,0 @@
-// Copyright (c) 2012 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_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_
-#define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_
-
-#include <string>
-
-#include "ui/gfx/native_widget_types.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace WebKit {
-class WebCookieJar;
-class WebPlugin;
-}
-
-namespace webkit {
-namespace npapi {
-
-class WebPluginDelegate;
-struct WebPluginGeometry;
-
-// Used by the WebPlugin to communicate back to the containing page.
-class WebPluginPageDelegate {
- public:
- // This method is called to create a WebPluginDelegate implementation when a
- // new plugin is instanced. See CreateWebPluginDelegateHelper
- // for a default WebPluginDelegate implementation.
- virtual WebPluginDelegate* CreatePluginDelegate(
- const base::FilePath& file_path,
- const std::string& mime_type) = 0;
-
- // Caled to create a replacement plug-in when loading a plug-in failed.
- virtual WebKit::WebPlugin* CreatePluginReplacement(
- const base::FilePath& file_path) = 0;
-
- // Called when a windowed plugin is created.
- // Lets the view delegate create anything it is using to wrap the plugin.
- virtual void CreatedPluginWindow(
- gfx::PluginWindowHandle handle) = 0;
-
- // Called when a windowed plugin is closing.
- // Lets the view delegate shut down anything it is using to wrap the plugin.
- virtual void WillDestroyPluginWindow(
- gfx::PluginWindowHandle handle) = 0;
-
- // Keeps track of the necessary window move for a plugin window that resulted
- // from a scroll operation. That way, all plugin windows can be moved at the
- // same time as each other and the page.
- virtual void DidMovePlugin(
- const WebPluginGeometry& move) = 0;
-
- // Notifies the parent view that a load has begun.
- virtual void DidStartLoadingForPlugin() = 0;
-
- // Notifies the parent view that all loads are finished.
- virtual void DidStopLoadingForPlugin() = 0;
-
- // The WebCookieJar to use for this plugin.
- virtual WebKit::WebCookieJar* GetCookieJar() = 0;
-
- protected:
- virtual ~WebPluginPageDelegate() {}
-};
-
-} // namespace npapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698