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_
10 class NavigationControllerDelegate
{
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_