| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_DELEGATE_H_ | |
| 6 #define COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_DELEGATE_H_ | |
| 7 | |
| 8 namespace web_view { | |
| 9 | |
| 10 class NavigationControllerDelegate { | |
| 11 public: | |
| 12 virtual ~NavigationControllerDelegate() {} | |
| 13 | |
| 14 // Called when the navigation controller starts a navigation. | |
| 15 // | |
| 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; | |
| 19 | |
| 20 // Notification that blink has committed a pending load. | |
| 21 virtual void OnDidNavigate() = 0; | |
| 22 }; | |
| 23 | |
| 24 } // namespace web_view | |
| 25 | |
| 26 #endif // COMPONENTS_WEB_VIEW_NAVIGATION_CONTROLLER_DELEGATE_H_ | |
| OLD | NEW |