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

Unified Diff: webkit/glue/plugins/webplugin_impl.cc

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 | « webkit/glue/plugins/webplugin_impl.h ('k') | webkit/glue/plugins/webplugin_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/webplugin_impl.cc
diff --git a/webkit/plugins/npapi/webplugin_impl.cc b/webkit/glue/plugins/webplugin_impl.cc
similarity index 99%
rename from webkit/plugins/npapi/webplugin_impl.cc
rename to webkit/glue/plugins/webplugin_impl.cc
index 97c2f28f6f7f775b346dbcf299b238e23a2626af..666775b1dde04808d0c04d4feaf337a0cfc9b18e 100644
--- a/webkit/plugins/npapi/webplugin_impl.cc
+++ b/webkit/glue/plugins/webplugin_impl.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/plugins/npapi/webplugin_impl.h"
+#include "webkit/glue/plugins/webplugin_impl.h"
#include "base/linked_ptr.h"
#include "base/logging.h"
@@ -39,10 +39,10 @@
#include "third_party/WebKit/WebKit/chromium/public/WebView.h"
#include "webkit/appcache/web_application_cache_host_impl.h"
#include "webkit/glue/multipart_response_delegate.h"
-#include "webkit/plugins/npapi/plugin_host.h"
-#include "webkit/plugins/npapi/plugin_instance.h"
-#include "webkit/plugins/npapi/webplugin_delegate.h"
-#include "webkit/plugins/npapi/webplugin_page_delegate.h"
+#include "webkit/glue/plugins/plugin_host.h"
+#include "webkit/glue/plugins/plugin_instance.h"
+#include "webkit/glue/plugins/webplugin_delegate.h"
+#include "webkit/glue/plugins/webplugin_page_delegate.h"
using appcache::WebApplicationCacheHostImpl;
using WebKit::WebCanvas;
@@ -73,9 +73,7 @@ using WebKit::WebVector;
using WebKit::WebView;
using webkit_glue::MultipartResponseDelegate;
-namespace webkit {
-namespace npapi {
-
+namespace webkit_glue {
namespace {
// This class handles individual multipart responses. It is instantiated when
@@ -603,7 +601,7 @@ bool WebPluginImpl::SetPostData(WebURLRequest* request,
std::vector<std::string> names;
std::vector<std::string> values;
std::vector<char> body;
- bool rv = PluginHost::SetPostData(buf, length, &names, &values, &body);
+ bool rv = NPAPI::PluginHost::SetPostData(buf, length, &names, &values, &body);
for (size_t i = 0; i < names.size(); ++i) {
request->addHTTPHeaderField(WebString::fromUTF8(names[i]),
@@ -1392,5 +1390,4 @@ WebDevToolsAgent* WebPluginImpl::GetDevToolsAgent() {
return view->devToolsAgent();
}
-} // namespace npapi
-} // namespace webkit
+} // namespace webkit_glue
« no previous file with comments | « webkit/glue/plugins/webplugin_impl.h ('k') | webkit/glue/plugins/webplugin_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698