summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/webplugin_proxy.h
diff options
context:
space:
mode:
authorchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 00:23:26 +0000
committerchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 00:23:26 +0000
commitc85b0ba71b5a55647b01de9d345e46896979033d (patch)
treeae99657ca1440b7540da473e1bbe6156e43e9be3 /chrome/plugin/webplugin_proxy.h
parent887ba3adc7b32b7df315ef292ae9395fd75653e5 (diff)
downloadchromium_src-c85b0ba71b5a55647b01de9d345e46896979033d.zip
chromium_src-c85b0ba71b5a55647b01de9d345e46896979033d.tar.gz
chromium_src-c85b0ba71b5a55647b01de9d345e46896979033d.tar.bz2
Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi"
Manually reverting r69755, which broke the tree. BUG=none TEST=none TBR=dmaclach@chromium.org Review URL: http://codereview.chromium.org/5998002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/webplugin_proxy.h')
-rw-r--r--chrome/plugin/webplugin_proxy.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/chrome/plugin/webplugin_proxy.h b/chrome/plugin/webplugin_proxy.h
index 2a1f1aee..66b396c 100644
--- a/chrome/plugin/webplugin_proxy.h
+++ b/chrome/plugin/webplugin_proxy.h
@@ -24,23 +24,17 @@
#include "chrome/common/chrome_plugin_api.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_message.h"
-#include "webkit/plugins/npapi/webplugin.h"
+#include "webkit/glue/plugins/webplugin.h"
class PluginChannel;
-
-namespace webkit {
-namespace npapi {
class WebPluginDelegateImpl;
-}
-}
-
#if defined(OS_MACOSX)
class WebPluginAcceleratedSurfaceProxy;
#endif
// This is an implementation of WebPlugin that proxies all calls to the
// renderer.
-class WebPluginProxy : public webkit::npapi::WebPlugin {
+class WebPluginProxy : public webkit_glue::WebPlugin {
public:
// Creates a new proxy for WebPlugin, using the given sender to send the
// marshalled WebPlugin calls.
@@ -51,7 +45,7 @@ class WebPluginProxy : public webkit::npapi::WebPlugin {
int host_render_view_routing_id);
~WebPluginProxy();
- void set_delegate(webkit::npapi::WebPluginDelegateImpl* d) { delegate_ = d; }
+ void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; }
// WebPlugin overrides
virtual void SetWindow(gfx::PluginWindowHandle window);
@@ -99,7 +93,7 @@ class WebPluginProxy : public webkit::npapi::WebPlugin {
// Returns a WebPluginResourceClient object given its id, or NULL if no
// object with that id exists.
- webkit::npapi::WebPluginResourceClient* GetResourceClient(int id);
+ webkit_glue::WebPluginResourceClient* GetResourceClient(int id);
// Returns the id of the renderer that contains this plugin.
int GetRendererId();
@@ -117,7 +111,7 @@ class WebPluginProxy : public webkit::npapi::WebPlugin {
// Notification received on a plugin issued resource request creation.
void OnResourceCreated(int resource_id,
- webkit::npapi::WebPluginResourceClient* client);
+ webkit_glue::WebPluginResourceClient* client);
virtual void HandleURLRequest(const char* url,
const char* method,
@@ -143,7 +137,7 @@ class WebPluginProxy : public webkit::npapi::WebPlugin {
virtual void SetDeferResourceLoading(unsigned long resource_id, bool defer);
virtual bool IsOffTheRecord();
virtual void ResourceClientDeleted(
- webkit::npapi::WebPluginResourceClient* resource_client);
+ webkit_glue::WebPluginResourceClient* resource_client);
gfx::NativeViewId containing_window() { return containing_window_; }
#if defined(OS_MACOSX)
@@ -151,7 +145,7 @@ class WebPluginProxy : public webkit::npapi::WebPlugin {
virtual void BindFakePluginWindowHandle(bool opaque);
- virtual webkit::npapi::WebPluginAcceleratedSurface* GetAcceleratedSurface();
+ virtual webkit_glue::WebPluginAcceleratedSurface* GetAcceleratedSurface();
// Tell the browser (via the renderer) to invalidate because the
// accelerated buffers have changed.
@@ -195,7 +189,7 @@ class WebPluginProxy : public webkit::npapi::WebPlugin {
const TransportDIB::Handle& background_buffer,
const gfx::Rect& window_rect);
- typedef base::hash_map<int, webkit::npapi::WebPluginResourceClient*>
+ typedef base::hash_map<int, webkit_glue::WebPluginResourceClient*>
ResourceClientMap;
ResourceClientMap resource_clients_;
@@ -204,7 +198,7 @@ class WebPluginProxy : public webkit::npapi::WebPlugin {
uint32 cp_browsing_context_;
NPObject* window_npobject_;
NPObject* plugin_element_;
- webkit::npapi::WebPluginDelegateImpl* delegate_;
+ WebPluginDelegateImpl* delegate_;
gfx::Rect damaged_rect_;
bool waiting_for_paint_;
gfx::NativeViewId containing_window_;