| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_IMPL_H_ | 5 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ |
| 6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ | 6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Sets the CRWSessionController that backs this object. | 60 // Sets the CRWSessionController that backs this object. |
| 61 // Keeps a strong reference to |session_controller|. | 61 // Keeps a strong reference to |session_controller|. |
| 62 // This method should only be called when deserializing |session_controller| | 62 // This method should only be called when deserializing |session_controller| |
| 63 // and joining it with its NavigationManager. Other cases should call | 63 // and joining it with its NavigationManager. Other cases should call |
| 64 // InitializeSession() or ReplaceSessionHistory(). | 64 // InitializeSession() or ReplaceSessionHistory(). |
| 65 // TODO(stuartmorgan): Also move deserialization of CRWSessionControllers | 65 // TODO(stuartmorgan): Also move deserialization of CRWSessionControllers |
| 66 // under the control of this class, and move the bulk of CRWSessionController | 66 // under the control of this class, and move the bulk of CRWSessionController |
| 67 // logic into it. | 67 // logic into it. |
| 68 void SetSessionController(CRWSessionController* session_controller); | 68 void SetSessionController(CRWSessionController* session_controller); |
| 69 | 69 |
| 70 // Initializes a new session history. |opened_by_dom| is YES if the page was | 70 // Initializes a new session history. |
| 71 // opened by DOM. | 71 void InitializeSession(); |
| 72 void InitializeSession(BOOL opened_by_dom); | |
| 73 | 72 |
| 74 // Replace the session history with a new one, where |items| is the | 73 // Replace the session history with a new one, where |items| is the |
| 75 // complete set of navigation items in the new history, and |current_index| | 74 // complete set of navigation items in the new history, and |current_index| |
| 76 // is the index of the currently active item. | 75 // is the index of the currently active item. |
| 77 void ReplaceSessionHistory(std::vector<std::unique_ptr<NavigationItem>> items, | 76 void ReplaceSessionHistory(std::vector<std::unique_ptr<NavigationItem>> items, |
| 78 int current_index); | 77 int current_index); |
| 79 | 78 |
| 80 // Sets the delegate used to drive the navigation controller facade. | 79 // Sets the delegate used to drive the navigation controller facade. |
| 81 void SetFacadeDelegate(NavigationManagerFacadeDelegate* facade_delegate); | 80 void SetFacadeDelegate(NavigationManagerFacadeDelegate* facade_delegate); |
| 82 NavigationManagerFacadeDelegate* GetFacadeDelegate() const; | 81 NavigationManagerFacadeDelegate* GetFacadeDelegate() const; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // List of transient url rewriters added by |AddTransientURLRewriter()|. | 193 // List of transient url rewriters added by |AddTransientURLRewriter()|. |
| 195 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> | 194 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> |
| 196 transient_url_rewriters_; | 195 transient_url_rewriters_; |
| 197 | 196 |
| 198 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); | 197 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); |
| 199 }; | 198 }; |
| 200 | 199 |
| 201 } // namespace web | 200 } // namespace web |
| 202 | 201 |
| 203 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ | 202 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ |
| OLD | NEW |