| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 91 // Notifies the observers that same page navigation did finish. |
| 92 void OnSamePageNavigation(const GURL& url); | 92 void OnSamePageNavigation(const GURL& url); |
| 93 | 93 |
| 94 // Notifies the observers that navigation to error page did finish. | 94 // Notifies the observers that navigation to error page did finish. |
| 95 void OnErrorPageNavigation(const GURL& url); | 95 void OnErrorPageNavigation(const GURL& url); |
| 96 | 96 |
| 97 // Called when page title was changed. |
| 98 void OnTitleChanged(); |
| 99 |
| 97 // Notifies the observers that the render process was terminated. | 100 // Notifies the observers that the render process was terminated. |
| 98 void OnRenderProcessGone(); | 101 void OnRenderProcessGone(); |
| 99 | 102 |
| 100 // Called when a script command is received. | 103 // Called when a script command is received. |
| 101 // Returns true if the command was handled. | 104 // Returns true if the command was handled. |
| 102 bool OnScriptCommandReceived(const std::string& command, | 105 bool OnScriptCommandReceived(const std::string& command, |
| 103 const base::DictionaryValue& value, | 106 const base::DictionaryValue& value, |
| 104 const GURL& url, | 107 const GURL& url, |
| 105 bool user_is_interacting); | 108 bool user_is_interacting); |
| 106 | 109 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 357 |
| 355 // Mojo interface registry for this WebState. | 358 // Mojo interface registry for this WebState. |
| 356 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; | 359 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; |
| 357 | 360 |
| 358 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 361 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 359 }; | 362 }; |
| 360 | 363 |
| 361 } // namespace web | 364 } // namespace web |
| 362 | 365 |
| 363 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 366 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |