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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 19800005: Hide knowledge of webkit::ppapi::PluginDelegate from chrome. This is part of moving ppapi implement… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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: content/renderer/pepper/pepper_plugin_delegate_impl.cc
===================================================================
--- content/renderer/pepper/pepper_plugin_delegate_impl.cc (revision 212906)
+++ content/renderer/pepper/pepper_plugin_delegate_impl.cc (working copy)
@@ -34,7 +34,6 @@
#include "content/public/common/content_switches.h"
#include "content/public/common/context_menu_params.h"
#include "content/public/common/media_stream_request.h"
-#include "content/public/common/referrer.h"
#include "content/public/common/webplugininfo.h"
#include "content/public/renderer/content_renderer_client.h"
#include "content/public/renderer/renderer_restrict_dispatch_group.h"
@@ -357,7 +356,7 @@
if (!pepper_module.get())
return NULL;
return new webkit::ppapi::WebPluginImpl(
- pepper_module.get(), params, AsWeakPtr());
+ pepper_module.get(), params, AsWeakPtr(), render_view_->AsWeakPtr());
}
return NULL;
@@ -1305,27 +1304,6 @@
render_view_->webview()->zoomLimitsChanged(minimum_level, maximum_level);
}
-void PepperPluginDelegateImpl::DidStartLoading() {
- render_view_->didStartLoading();
-}
-
-void PepperPluginDelegateImpl::DidStopLoading() {
- render_view_->didStopLoading();
-}
-
-void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) {
- render_view_->Send(new ViewHostMsg_UpdateContentRestrictions(
- render_view_->routing_id(), restrictions));
-}
-
-void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) {
- WebFrame* frame = render_view_->webview()->mainFrame();
- Referrer referrer(frame->document().url(),
- frame->document().referrerPolicy());
- render_view_->Send(new ViewHostMsg_SaveURLAs(
- render_view_->routing_id(), url, referrer));
-}
-
void PepperPluginDelegateImpl::HandleDocumentLoad(
webkit::ppapi::PluginInstance* instance,
const WebKit::WebURLResponse& response) {

Powered by Google App Engine
This is Rietveld 408576698