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

Unified Diff: android_webview/browser/renderer_host/view_renderer_host.cc

Issue 16796002: Delete the browser-compositor webview render mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
« no previous file with comments | « android_webview/browser/renderer_host/view_renderer_host.h ('k') | android_webview/common/aw_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/renderer_host/view_renderer_host.cc
diff --git a/android_webview/browser/renderer_host/view_renderer_host.cc b/android_webview/browser/renderer_host/view_renderer_host.cc
deleted file mode 100644
index 8dd9314fae79a94602e6483854da55e518475f3e..0000000000000000000000000000000000000000
--- a/android_webview/browser/renderer_host/view_renderer_host.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "android_webview/browser/renderer_host/view_renderer_host.h"
-
-#include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
-#include "android_webview/common/aw_switches.h"
-#include "android_webview/common/render_view_messages.h"
-#include "android_webview/common/renderer_picture_map.h"
-#include "content/public/browser/render_process_host.h"
-#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/web_contents.h"
-
-namespace android_webview {
-
-ViewRendererHost::ViewRendererHost(content::WebContents* contents,
- Client* client)
- : content::WebContentsObserver(contents),
- client_(client) {
- DCHECK(client);
-}
-
-ViewRendererHost::~ViewRendererHost() {
-}
-
-void ViewRendererHost::CapturePictureSync() {
- if (!IsRenderViewReady())
- return;
-
- ScopedAllowWaitForLegacyWebViewApi wait;
- Send(new AwViewMsg_CapturePictureSync(web_contents()->GetRoutingID()));
-}
-
-void ViewRendererHost::EnableCapturePictureCallback(bool enabled) {
- Send(new AwViewMsg_EnableCapturePictureCallback(
- web_contents()->GetRoutingID(), enabled));
-}
-
-void ViewRendererHost::OnPictureUpdated() {
- client_->OnPictureUpdated(web_contents()->GetRenderProcessHost()->GetID(),
- routing_id());
-}
-
-void ViewRendererHost::RenderViewGone(base::TerminationStatus status) {
- DCHECK(CalledOnValidThread());
- RendererPictureMap::GetInstance()->ClearRendererPicture(
- web_contents()->GetRoutingID());
-}
-
-bool ViewRendererHost::OnMessageReceived(const IPC::Message& message) {
- bool handled = true;
- IPC_BEGIN_MESSAGE_MAP(ViewRendererHost, message)
- IPC_MESSAGE_HANDLER(AwViewHostMsg_PictureUpdated,
- OnPictureUpdated)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
-
- return handled ? true : WebContentsObserver::OnMessageReceived(message);
-}
-
-bool ViewRendererHost::IsRenderViewReady() const {
- return web_contents()->GetRenderProcessHost()->HasConnection() &&
- web_contents()->GetRenderViewHost() &&
- web_contents()->GetRenderViewHost()->IsRenderViewLive();
-}
-
-} // namespace android_webview
« no previous file with comments | « android_webview/browser/renderer_host/view_renderer_host.h ('k') | android_webview/common/aw_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698