Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / mandoline / tab / frame_tree_delegate.h
blob8a5056bb03d959024d740d8343b4b473b8a4b31a
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"
11 namespace mandoline {
13 class Frame;
14 class MessageEvent;
16 class FrameTreeDelegate {
17 public:
18 virtual bool CanPostMessageEventToFrame(const Frame* source,
19 const Frame* target,
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;
27 protected:
28 virtual ~FrameTreeDelegate() {}
31 } // namespace mandoline
33 #endif // MANDOLINE_TAB_FRAME_TREE_DELEGATE_H_