| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_ | 5 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_ |
| 6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_ | 6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 namespace web { | 10 namespace web { |
| 9 | 11 |
| 10 struct LoadCommittedDetails; | 12 struct LoadCommittedDetails; |
| 11 class WebState; | 13 class WebState; |
| 12 | 14 |
| 13 // Delegate for NavigationManager to hand off parts of the navigation flow. | 15 // Delegate for NavigationManager to hand off parts of the navigation flow. |
| 14 // TODO(stuartmorgan): See if this can be eliminated by moving more | 16 // TODO(stuartmorgan): See if this can be eliminated by moving more |
| 15 class NavigationManagerDelegate { | 17 class NavigationManagerDelegate { |
| 16 public: | 18 public: |
| 17 virtual ~NavigationManagerDelegate() {} | 19 virtual ~NavigationManagerDelegate() {} |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 virtual void OnNavigationItemCommitted( | 33 virtual void OnNavigationItemCommitted( |
| 32 const LoadCommittedDetails& load_details) = 0; | 34 const LoadCommittedDetails& load_details) = 0; |
| 33 | 35 |
| 34 // Returns the WebState associated with this delegate. | 36 // Returns the WebState associated with this delegate. |
| 35 virtual WebState* GetWebState() = 0; | 37 virtual WebState* GetWebState() = 0; |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 } // namespace web | 40 } // namespace web |
| 39 | 41 |
| 40 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_ | 42 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_ |
| OLD | NEW |