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

Unified Diff: content/test/test_render_frame.h

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: MakeShared goodness Created 3 years, 8 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/test/test_render_frame.h
diff --git a/content/test/test_render_frame.h b/content/test/test_render_frame.h
index c200b1ad49c6981c0567a58d0b105ec130fc536f..448ac9331cc3c50d7467783292c7df9e524dce8d 100644
--- a/content/test/test_render_frame.h
+++ b/content/test/test_render_frame.h
@@ -5,8 +5,12 @@
#ifndef CONTENT_TEST_TEST_RENDER_FRAME_H_
#define CONTENT_TEST_TEST_RENDER_FRAME_H_
+#include <memory>
+
#include "base/macros.h"
+#include "content/common/frame.mojom.h"
#include "content/renderer/render_frame_impl.h"
+#include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
namespace blink {
class WebHistoryItem;
@@ -15,6 +19,7 @@ class WebHistoryItem;
namespace content {
struct CommonNavigationParams;
+class MockFrameHost;
struct RequestNavigationParams;
struct StartNavigationParams;
@@ -49,8 +54,14 @@ class TestRenderFrame : public RenderFrameImpl {
blink::WebNavigationPolicy DecidePolicyForNavigation(
const blink::WebFrameClient::NavigationPolicyInfo& info) override;
+ mojom::FrameHostAssociatedPtr GetFrameHost() override;
+
private:
+ void BindFrameHost(mojo::ScopedInterfaceEndpointHandle handle);
explicit TestRenderFrame(const RenderFrameImpl::CreateParams& params);
+
+ std::unique_ptr<MockFrameHost> mock_frame_host_;
+
DISALLOW_COPY_AND_ASSIGN(TestRenderFrame);
};

Powered by Google App Engine
This is Rietveld 408576698