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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android_delegate.h

Issue 2484793002: Remove access to WebContents in RWHVA::SynchronousFrameMetadata() (Closed)
Patch Set: Created 4 years, 1 month 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/browser/renderer_host/render_widget_host_view_android_delegate.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android_delegate.h b/content/browser/renderer_host/render_widget_host_view_android_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..34e6570c8f6acdeadc577e039b1efbd6b2ee2b3d
--- /dev/null
+++ b/content/browser/renderer_host/render_widget_host_view_android_delegate.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2016 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.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_DELEGATE_H_
+#define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_DELEGATE_H_
+
+#include "base/memory/ref_counted.h"
+#include "content/public/browser/devtools_agent_host.h"
+
+namespace content {
+
+// This interface defines methods RWVHA delegates tasks to.
+class RenderWidgetHostViewAndroidDelegate {
+ public:
+
+ // Return true if we're showing an interstitial page.
+ virtual bool ShowingInterstitialPage() = 0;
+
+ // Get DevToolsAgentHost instance for current web contents. nullptr is
+ // returned if the corresponding instance is not present.
+ virtual scoped_refptr<DevToolsAgentHost> GetDevToolsAgentHost() = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698