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