Delete unused downloads page asset.
[chromium-blink-merge.git] / mandoline / tab / test_frame_tree_delegate.h
blob8952715793137a89ff391af4619066f53e0e9643
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MANDOLINE_TAB_TEST_FRAME_TREE_DELEGATE_H_
6 #define MANDOLINE_TAB_TEST_FRAME_TREE_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "mandoline/tab/frame_tree_delegate.h"
11 namespace mandoline {
13 class TestFrameTreeDelegate : public FrameTreeDelegate {
14 public:
15 TestFrameTreeDelegate();
16 ~TestFrameTreeDelegate() override;
18 // TestFrameTreeDelegate:
19 bool CanPostMessageEventToFrame(const Frame* source,
20 const Frame* target,
21 HTMLMessageEvent* event) override;
22 void LoadingStateChanged(bool loading) override;
23 void ProgressChanged(double progress) override;
24 void NavigateTopLevel(Frame* source, mojo::URLRequestPtr request) override;
25 bool CanNavigateFrame(
26 Frame* target,
27 mojo::URLRequestPtr request,
28 FrameTreeClient** frame_tree_client,
29 scoped_ptr<FrameUserData>* frame_user_data,
30 mojo::ViewTreeClientPtr* view_tree_client) override;
31 void DidStartNavigation(Frame* frame) override;
33 private:
34 DISALLOW_COPY_AND_ASSIGN(TestFrameTreeDelegate);
37 } // namespace mandoline
39 #endif // MANDOLINE_TAB_TEST_FRAME_TREE_DELEGATE_H_