Add ICU message format support
[chromium-blink-merge.git] / ios / web / navigation / navigation_manager_delegate.h
blobbc1e0584129c6af683d890ec011c53aeff4249de
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 IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_
6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_
8 namespace web {
10 struct LoadCommittedDetails;
11 class WebState;
13 // Delegate for NavigationManager to hand off parts of the navigation flow.
14 // TODO(stuartmorgan): See if this can be eliminated by moving more
15 class NavigationManagerDelegate {
16 public:
17 virtual ~NavigationManagerDelegate() {}
19 // Instructs the delegate to begin navigating to the pending entry.
20 // TODO(stuartmorgan): Remove this once more navigation logic moves to
21 // NavigationManagerImpl.
22 virtual void NavigateToPendingEntry() = 0;
24 // Informs the delegate that a navigation item has been commited.
25 virtual void OnNavigationItemCommitted(
26 const LoadCommittedDetails& load_details) = 0;
28 // Returns the WebState associated with this delegate.
29 virtual WebState* GetWebState() = 0;
32 } // namespace web
34 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_