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

Unified Diff: components/web_view/test_frame_tree_delegate.h

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar 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/reload_type.h ('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
deleted file mode 100644
index 5b6348ff25189e09762eb12e1bc7d809b8cb578f..0000000000000000000000000000000000000000
--- a/components/web_view/test_frame_tree_delegate.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2015 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 COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_
-#define COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "components/web_view/frame_tree_delegate.h"
-
-namespace base {
-class RunLoop;
-}
-
-namespace mojo {
-class Shell;
-}
-
-namespace web_view {
-
-class TestFrameTreeDelegate : public FrameTreeDelegate {
- public:
- explicit TestFrameTreeDelegate(mojo::Shell* shell);
- ~TestFrameTreeDelegate() override;
-
- mojo::Shell* shell() { return shell_; }
-
- // Runs a message loop until DidCreateFrame() is called, returning the
- // Frame supplied to DidCreateFrame().
- Frame* WaitForCreateFrame();
-
- // Waits for DidDestroyFrame() to be called with |frame|.
- void WaitForDestroyFrame(Frame* frame);
-
- // Waits for OnWindowEmbeddedInFrameDisconnected() to be called with |frame|.
- void WaitForFrameDisconnected(Frame* frame);
-
- // TestFrameTreeDelegate:
- scoped_ptr<FrameUserData> CreateUserDataForNewFrame(
- mojom::FrameClientPtr frame_client) override;
- bool CanPostMessageEventToFrame(const Frame* source,
- const Frame* target,
- mojom::HTMLMessageEvent* event) override;
- void LoadingStateChanged(bool loading, double progress) override;
- void TitleChanged(const mojo::String& title) override;
- void NavigateTopLevel(Frame* source, mojo::URLRequestPtr request) override;
- void CanNavigateFrame(Frame* target,
- mojo::URLRequestPtr request,
- const CanNavigateFrameCallback& callback) override;
- void DidStartNavigation(Frame* frame) override;
- void DidCommitProvisionalLoad(Frame* frame) override;
- void DidNavigateLocally(Frame* source, const GURL& url) override;
- void DidCreateFrame(Frame* frame) override;
- void DidDestroyFrame(Frame* frame) override;
- void OnWindowEmbeddedInFrameDisconnected(Frame* frame) override;
-
- private:
- bool is_waiting() const { return run_loop_.get(); }
-
- mojo::Shell* shell_;
- bool waiting_for_create_frame_;
- Frame* waiting_for_destroy_frame_;
- scoped_ptr<base::RunLoop> run_loop_;
- Frame* most_recent_frame_;
- Frame* waiting_for_frame_disconnected_;
-
- DISALLOW_COPY_AND_ASSIGN(TestFrameTreeDelegate);
-};
-
-} // namespace web_view
-
-#endif // COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_
« no previous file with comments | « components/web_view/reload_type.h ('k') | components/web_view/test_frame_tree_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698