Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / components / web_view / navigation_controller_delegate.h
blob51c4662d2182c6aa3402959624b30bb9bd20743c
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_NAVIGATION_CONTROLLER_DELEGATE_H_
6 #define COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_DELEGATE_H_
8 namespace web_view {
10 class NavigationControllerDelegate {
11 public:
12 virtual ~NavigationControllerDelegate() {}
14 // Called when the navigation controller starts a navigation.
16 // TODO(erg): This should be removed and most of the PendingWebViewLoad logic
17 // should be moved to NavigationEntry and/or NavigationController.
18 virtual void OnNavigate(mojo::URLRequestPtr request) = 0;
20 // Notification that blink has committed a pending load.
21 virtual void OnDidNavigate() = 0;
24 } // namespace web_view
26 #endif // COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_DELEGATE_H_