| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FACADE_DELEGATE_H_ | 5 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_FACADE_DELEGATE_H_ |
| 6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_FACADE_DELEGATE_H_ | 6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_FACADE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 class NavigationController; | 11 class NavigationController; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace web { | 14 namespace web { |
| 15 | 15 |
| 16 class NavigationItemImpl; | |
| 17 class NavigationManagerImpl; | 16 class NavigationManagerImpl; |
| 18 | 17 |
| 19 // Interface used by the NavigationManager to drive the NavigationController | 18 // Interface used by the NavigationManager to drive the NavigationController |
| 20 // facade. This pushes the ownership of the facade out of the web-layer to | 19 // facade. This pushes the ownership of the facade out of the web-layer to |
| 21 // simplify upstreaming efforts. Once upstream features are componentized and | 20 // simplify upstreaming efforts. Once upstream features are componentized and |
| 22 // use NavigationManager, this class will no longer be necessary. | 21 // use NavigationManager, this class will no longer be necessary. |
| 23 class NavigationManagerFacadeDelegate { | 22 class NavigationManagerFacadeDelegate { |
| 24 public: | 23 public: |
| 25 NavigationManagerFacadeDelegate() {} | 24 NavigationManagerFacadeDelegate() {} |
| 26 virtual ~NavigationManagerFacadeDelegate() {} | 25 virtual ~NavigationManagerFacadeDelegate() {} |
| (...skipping 13 matching lines...) Expand all Loading... |
| 40 // Called when the NavigationManager has committed a pending NavigationItem. | 39 // Called when the NavigationManager has committed a pending NavigationItem. |
| 41 virtual void OnNavigationItemCommitted(int previous_item_index, | 40 virtual void OnNavigationItemCommitted(int previous_item_index, |
| 42 bool is_in_page) = 0; | 41 bool is_in_page) = 0; |
| 43 // Called when the NavigationManager has pruned committed NavigationItems. | 42 // Called when the NavigationManager has pruned committed NavigationItems. |
| 44 virtual void OnNavigationItemsPruned(size_t pruned_item_count) = 0; | 43 virtual void OnNavigationItemsPruned(size_t pruned_item_count) = 0; |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 } // namespace web | 46 } // namespace web |
| 48 | 47 |
| 49 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_FACADE_DELEGATE_H_ | 48 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_FACADE_DELEGATE_H_ |
| OLD | NEW |