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

Unified Diff: components/web_view/test_frame_tree_delegate.h

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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 | « components/web_view/public/cpp/web_view.cc ('k') | components/web_view/test_frame_tree_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/test_frame_tree_delegate.h
diff --git a/components/web_view/test_frame_tree_delegate.h b/components/web_view/test_frame_tree_delegate.h
index 7506678344f9ea6d9062596038c368b9459487af..5b6348ff25189e09762eb12e1bc7d809b8cb578f 100644
--- a/components/web_view/test_frame_tree_delegate.h
+++ b/components/web_view/test_frame_tree_delegate.h
@@ -14,17 +14,17 @@ class RunLoop;
}
namespace mojo {
-class ApplicationImpl;
+class Shell;
}
namespace web_view {
class TestFrameTreeDelegate : public FrameTreeDelegate {
public:
- explicit TestFrameTreeDelegate(mojo::ApplicationImpl* app);
+ explicit TestFrameTreeDelegate(mojo::Shell* shell);
~TestFrameTreeDelegate() override;
- mojo::ApplicationImpl* app() { return app_; }
+ mojo::Shell* shell() { return shell_; }
// Runs a message loop until DidCreateFrame() is called, returning the
// Frame supplied to DidCreateFrame().
@@ -58,7 +58,7 @@ class TestFrameTreeDelegate : public FrameTreeDelegate {
private:
bool is_waiting() const { return run_loop_.get(); }
- mojo::ApplicationImpl* app_;
+ mojo::Shell* shell_;
bool waiting_for_create_frame_;
Frame* waiting_for_destroy_frame_;
scoped_ptr<base::RunLoop> run_loop_;
« no previous file with comments | « components/web_view/public/cpp/web_view.cc ('k') | components/web_view/test_frame_tree_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698