| 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_WEB_STATE_WEB_STATE_IMPL_H_ | 5 #ifndef IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| 6 #define IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 6 #define IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 // Called when a navigation is committed. | 82 // Called when a navigation is committed. |
| 83 void OnNavigationCommitted(const GURL& url); | 83 void OnNavigationCommitted(const GURL& url); |
| 84 | 84 |
| 85 // Notifies the observers that the URL hash of the current page changed. | 85 // Notifies the observers that the URL hash of the current page changed. |
| 86 void OnUrlHashChanged(); | 86 void OnUrlHashChanged(); |
| 87 | 87 |
| 88 // Notifies the observers that the history state of the current page changed. | 88 // Notifies the observers that the history state of the current page changed. |
| 89 void OnHistoryStateChanged(); | 89 void OnHistoryStateChanged(); |
| 90 | 90 |
| 91 // Notifies the observers that same page navigation did finish. |
| 92 void OnSamePageNavigation(const GURL& url); |
| 93 |
| 94 // Notifies the observers that navigation to error page did finish. |
| 95 void OnErrorPageNavigation(const GURL& url); |
| 96 |
| 91 // Notifies the observers that the render process was terminated. | 97 // Notifies the observers that the render process was terminated. |
| 92 void OnRenderProcessGone(); | 98 void OnRenderProcessGone(); |
| 93 | 99 |
| 94 // Called when a script command is received. | 100 // Called when a script command is received. |
| 95 // Returns true if the command was handled. | 101 // Returns true if the command was handled. |
| 96 bool OnScriptCommandReceived(const std::string& command, | 102 bool OnScriptCommandReceived(const std::string& command, |
| 97 const base::DictionaryValue& value, | 103 const base::DictionaryValue& value, |
| 98 const GURL& url, | 104 const GURL& url, |
| 99 bool user_is_interacting); | 105 bool user_is_interacting); |
| 100 | 106 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 | 354 |
| 349 // Mojo interface registry for this WebState. | 355 // Mojo interface registry for this WebState. |
| 350 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; | 356 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; |
| 351 | 357 |
| 352 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 358 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 353 }; | 359 }; |
| 354 | 360 |
| 355 } // namespace web | 361 } // namespace web |
| 356 | 362 |
| 357 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 363 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |