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

Unified Diff: chrome/renderer/webplugin_delegate_pepper.h

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | « chrome/renderer/renderer_glue.cc ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webplugin_delegate_pepper.h
diff --git a/chrome/renderer/webplugin_delegate_pepper.h b/chrome/renderer/webplugin_delegate_pepper.h
index 628542481572c5a9b981fbed943e70e8e4480b3d..cfe34a1a504fc23bf866a9507cb3475bd832ab24 100644
--- a/chrome/renderer/webplugin_delegate_pepper.h
+++ b/chrome/renderer/webplugin_delegate_pepper.h
@@ -22,21 +22,19 @@
#include "third_party/npapi/bindings/npapi.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/WebKit/WebKit/chromium/public/WebFileChooserCompletion.h"
-#include "webkit/plugins/npapi/webplugin_delegate.h"
+#include "webkit/glue/plugins/webplugin_delegate.h"
class FilePath;
class RenderView;
class WebCursor;
class WebPluginDelegateProxy;
-namespace webkit {
-namespace npapi {
+namespace NPAPI {
class PluginInstance;
}
-}
// An implementation of WebPluginDelegate for Pepper in-process plugins.
-class WebPluginDelegatePepper : public webkit::npapi::WebPluginDelegate,
+class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate,
public WebKit::WebFileChooserCompletion {
public:
static WebPluginDelegatePepper* Create(
@@ -44,7 +42,7 @@ class WebPluginDelegatePepper : public webkit::npapi::WebPluginDelegate,
const std::string& mime_type,
const base::WeakPtr<RenderView>& render_view);
- webkit::npapi::PluginInstance* instance() { return instance_.get(); }
+ NPAPI::PluginInstance* instance() { return instance_.get(); }
// WebKit::WebFileChooserCompletion implementation.
virtual void didChooseFile(
@@ -54,7 +52,7 @@ class WebPluginDelegatePepper : public webkit::npapi::WebPluginDelegate,
virtual bool Initialize(const GURL& url,
const std::vector<std::string>& arg_names,
const std::vector<std::string>& arg_values,
- webkit::npapi::WebPlugin* plugin,
+ webkit_glue::WebPlugin* plugin,
bool load_manually);
virtual void PluginDestroyed();
virtual void UpdateGeometry(const gfx::Rect& window_rect,
@@ -81,9 +79,9 @@ class WebPluginDelegatePepper : public webkit::npapi::WebPluginDelegate,
virtual void DidFinishManualLoading();
virtual void DidManualLoadFail();
virtual void InstallMissingPlugin();
- virtual webkit::npapi::WebPluginResourceClient* CreateResourceClient(
+ virtual webkit_glue::WebPluginResourceClient* CreateResourceClient(
unsigned long resource_id, const GURL& url, int notify_id);
- virtual webkit::npapi::WebPluginResourceClient* CreateSeekableResourceClient(
+ virtual webkit_glue::WebPluginResourceClient* CreateSeekableResourceClient(
unsigned long resource_id, int range_request_id);
virtual bool StartFind(const string16& search_text,
bool case_sensitive,
@@ -210,7 +208,7 @@ class WebPluginDelegatePepper : public webkit::npapi::WebPluginDelegate,
private:
WebPluginDelegatePepper(
const base::WeakPtr<RenderView>& render_view,
- webkit::npapi::PluginInstance *instance);
+ NPAPI::PluginInstance *instance);
~WebPluginDelegatePepper();
// Set a task that calls the repaint callback the next time the window
@@ -277,8 +275,8 @@ class WebPluginDelegatePepper : public webkit::npapi::WebPluginDelegate,
base::WeakPtr<RenderView> render_view_;
- webkit::npapi::WebPlugin* plugin_;
- scoped_refptr<webkit::npapi::PluginInstance> instance_;
+ webkit_glue::WebPlugin* plugin_;
+ scoped_refptr<NPAPI::PluginInstance> instance_;
NPWindow window_;
gfx::Rect window_rect_;
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698