| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 // Called when the page sends a notification that the user failed to sign in | 141 // Called when the page sends a notification that the user failed to sign in |
| 142 // with |credential|. | 142 // with |credential|. |
| 143 void OnSignInFailed(int request_id, | 143 void OnSignInFailed(int request_id, |
| 144 const GURL& source_url, | 144 const GURL& source_url, |
| 145 const web::Credential& credential); | 145 const web::Credential& credential); |
| 146 | 146 |
| 147 // Called when the page sends a notification that the user failed to sign in. | 147 // Called when the page sends a notification that the user failed to sign in. |
| 148 void OnSignInFailed(int request_id, const GURL& source_url); | 148 void OnSignInFailed(int request_id, const GURL& source_url); |
| 149 | 149 |
| 150 void OnSensitiveInputShownOnHttp(); |
| 151 |
| 150 // Returns the NavigationManager for this WebState. | 152 // Returns the NavigationManager for this WebState. |
| 151 const NavigationManagerImpl& GetNavigationManagerImpl() const; | 153 const NavigationManagerImpl& GetNavigationManagerImpl() const; |
| 152 NavigationManagerImpl& GetNavigationManagerImpl(); | 154 NavigationManagerImpl& GetNavigationManagerImpl(); |
| 153 | 155 |
| 154 // Creates a WebUI page for the given url, owned by this object. | 156 // Creates a WebUI page for the given url, owned by this object. |
| 155 void CreateWebUI(const GURL& url); | 157 void CreateWebUI(const GURL& url); |
| 156 // Clears any current WebUI. Should be called when the page changes. | 158 // Clears any current WebUI. Should be called when the page changes. |
| 157 // TODO(stuartmorgan): Remove once more logic is moved from WebController | 159 // TODO(stuartmorgan): Remove once more logic is moved from WebController |
| 158 // into this class. | 160 // into this class. |
| 159 void ClearWebUI(); | 161 void ClearWebUI(); |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 370 |
| 369 // Mojo interface registry for this WebState. | 371 // Mojo interface registry for this WebState. |
| 370 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; | 372 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; |
| 371 | 373 |
| 372 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 374 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 373 }; | 375 }; |
| 374 | 376 |
| 375 } // namespace web | 377 } // namespace web |
| 376 | 378 |
| 377 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 379 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |