| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 91 // Called when page title was changed. |
| 92 void OnTitleChanged(); | 92 void OnTitleChanged(); |
| 93 | 93 |
| 94 // Called when the visible security state of the page changes. |
| 95 void OnVisibleSecurityStateChange(); |
| 96 |
| 94 // Notifies the observers that the render process was terminated. | 97 // Notifies the observers that the render process was terminated. |
| 95 void OnRenderProcessGone(); | 98 void OnRenderProcessGone(); |
| 96 | 99 |
| 97 // Called when a script command is received. | 100 // Called when a script command is received. |
| 98 // Returns true if the command was handled. | 101 // Returns true if the command was handled. |
| 99 bool OnScriptCommandReceived(const std::string& command, | 102 bool OnScriptCommandReceived(const std::string& command, |
| 100 const base::DictionaryValue& value, | 103 const base::DictionaryValue& value, |
| 101 const GURL& url, | 104 const GURL& url, |
| 102 bool user_is_interacting); | 105 bool user_is_interacting); |
| 103 | 106 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 | 367 |
| 365 // Mojo interface registry for this WebState. | 368 // Mojo interface registry for this WebState. |
| 366 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; | 369 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; |
| 367 | 370 |
| 368 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 371 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 369 }; | 372 }; |
| 370 | 373 |
| 371 } // namespace web | 374 } // namespace web |
| 372 | 375 |
| 373 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 376 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |