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_FRAME_TREE_DELEGATE_H_
6 #define MANDOLINE_TAB_FRAME_TREE_DELEGATE_H_
8 #include "mandoline/tab/public/interfaces/frame_tree.mojom.h"
9 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
16 class FrameTreeDelegate
{
18 virtual bool CanPostMessageEventToFrame(const Frame
* source
,
20 MessageEvent
* event
) = 0;
21 virtual void LoadingStateChanged(bool loading
) = 0;
22 virtual void ProgressChanged(double progress
) = 0;
23 virtual void RequestNavigate(Frame
* source
,
24 NavigationTarget target
,
25 mojo::URLRequestPtr request
) = 0;
28 virtual ~FrameTreeDelegate() {}
31 } // namespace mandoline
33 #endif // MANDOLINE_TAB_FRAME_TREE_DELEGATE_H_