Componentize VariationsService into //components/variations/service
[chromium-blink-merge.git] / components / web_view / test_frame_tree_delegate.h
blob71a93eb4173d28c65587486650d6ad06586e34a0
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 COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_
6 #define COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "components/web_view/frame_tree_delegate.h"
11 namespace web_view {
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 TitleChanged(const mojo::String& title) override;
25 void NavigateTopLevel(Frame* source, mojo::URLRequestPtr request) override;
26 void CanNavigateFrame(Frame* target,
27 mojo::URLRequestPtr request,
28 const CanNavigateFrameCallback& callback) override;
29 void DidStartNavigation(Frame* frame) override;
31 private:
32 DISALLOW_COPY_AND_ASSIGN(TestFrameTreeDelegate);
35 } // namespace web_view
37 #endif // COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_