Index: android_webview/browser/renderer_host/aw_render_view_host_ext.cc |
diff --git a/android_webview/browser/renderer_host/aw_render_view_host_ext.cc b/android_webview/browser/renderer_host/aw_render_view_host_ext.cc |
index 761074e2a2a0c3972da8adf3841b06bda3c0a026..8bdacdb2470b776cfbb01ce5f88e9977ec2ca58a 100644 |
--- a/android_webview/browser/renderer_host/aw_render_view_host_ext.cc |
+++ b/android_webview/browser/renderer_host/aw_render_view_host_ext.cc |
@@ -18,11 +18,9 @@ |
namespace android_webview { |
-AwRenderViewHostExt::AwRenderViewHostExt(content::WebContents* contents, |
- Client* client) |
+AwRenderViewHostExt::AwRenderViewHostExt(content::WebContents* contents) |
: content::WebContentsObserver(contents), |
- has_new_hit_test_data_(false), |
- client_(client) { |
+ has_new_hit_test_data_(false) { |
} |
AwRenderViewHostExt::~AwRenderViewHostExt() {} |
@@ -65,11 +63,6 @@ const AwHitTestData& AwRenderViewHostExt::GetLastHitTestData() const { |
return last_hit_test_data_; |
} |
-void AwRenderViewHostExt::EnableCapturePictureCallback(bool enabled) { |
- Send(new AwViewMsg_EnableCapturePictureCallback( |
- web_contents()->GetRoutingID(), enabled)); |
-} |
- |
void AwRenderViewHostExt::RenderViewGone(base::TerminationStatus status) { |
DCHECK(CalledOnValidThread()); |
for (std::map<int, DocumentHasImagesResult>::iterator pending_req = |
@@ -96,8 +89,6 @@ bool AwRenderViewHostExt::OnMessageReceived(const IPC::Message& message) { |
OnDocumentHasImagesResponse) |
IPC_MESSAGE_HANDLER(AwViewHostMsg_UpdateHitTestData, |
OnUpdateHitTestData) |
- IPC_MESSAGE_HANDLER(AwViewHostMsg_PictureUpdated, |
- OnPictureUpdated) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
@@ -124,24 +115,4 @@ void AwRenderViewHostExt::OnUpdateHitTestData( |
has_new_hit_test_data_ = true; |
} |
-void AwRenderViewHostExt::OnPictureUpdated() { |
- if (client_) |
- client_->OnPictureUpdated(web_contents()->GetRenderProcessHost()->GetID(), |
- routing_id()); |
-} |
- |
-bool AwRenderViewHostExt::IsRenderViewReady() const { |
- return web_contents()->GetRenderProcessHost()->HasConnection() && |
- web_contents()->GetRenderViewHost() && |
- web_contents()->GetRenderViewHost()->IsRenderViewLive(); |
-} |
- |
-void AwRenderViewHostExt::CapturePictureSync() { |
- if (!IsRenderViewReady()) |
- return; |
- |
- ScopedAllowWaitForLegacyWebViewApi wait; |
- Send(new AwViewMsg_CapturePictureSync(web_contents()->GetRoutingID())); |
-} |
- |
} // namespace android_webview |