| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // Notifies the delegate that a Form Repost dialog needs to be presented. | 246 // Notifies the delegate that a Form Repost dialog needs to be presented. |
| 247 void ShowRepostFormWarningDialog(const base::Callback<void(bool)>& callback); | 247 void ShowRepostFormWarningDialog(const base::Callback<void(bool)>& callback); |
| 248 | 248 |
| 249 // Notifies the delegate that a JavaScript dialog needs to be presented. | 249 // Notifies the delegate that a JavaScript dialog needs to be presented. |
| 250 void RunJavaScriptDialog(const GURL& origin_url, | 250 void RunJavaScriptDialog(const GURL& origin_url, |
| 251 JavaScriptDialogType java_script_dialog_type, | 251 JavaScriptDialogType java_script_dialog_type, |
| 252 NSString* message_text, | 252 NSString* message_text, |
| 253 NSString* default_prompt_text, | 253 NSString* default_prompt_text, |
| 254 const DialogClosedCallback& callback); | 254 const DialogClosedCallback& callback); |
| 255 | 255 |
| 256 // Instructs the delegate to create a new web state. Called when this WebState |
| 257 // wants to open a new window. |url| is the URL of the new window; |
| 258 // |opener_url| is the URL of the page which requested a window to be open; |
| 259 // |initiated_by_user| is true if action was caused by the user. |
| 260 WebState* CreateNewWebState(const GURL& url, |
| 261 const GURL& opener_url, |
| 262 bool initiated_by_user); |
| 263 |
| 256 // Notifies the delegate that request receives an authentication challenge | 264 // Notifies the delegate that request receives an authentication challenge |
| 257 // and is unable to respond using cached credentials. | 265 // and is unable to respond using cached credentials. |
| 258 void OnAuthRequired(NSURLProtectionSpace* protection_space, | 266 void OnAuthRequired(NSURLProtectionSpace* protection_space, |
| 259 NSURLCredential* proposed_credential, | 267 NSURLCredential* proposed_credential, |
| 260 const WebStateDelegate::AuthCallback& callback); | 268 const WebStateDelegate::AuthCallback& callback); |
| 261 | 269 |
| 262 // Cancels all dialogs associated with this web_state. | 270 // Cancels all dialogs associated with this web_state. |
| 263 void CancelDialogs(); | 271 void CancelDialogs(); |
| 264 | 272 |
| 265 // NavigationManagerDelegate: | 273 // NavigationManagerDelegate: |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 | 360 |
| 353 // Mojo interface registry for this WebState. | 361 // Mojo interface registry for this WebState. |
| 354 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; | 362 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; |
| 355 | 363 |
| 356 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 364 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 357 }; | 365 }; |
| 358 | 366 |
| 359 } // namespace web | 367 } // namespace web |
| 360 | 368 |
| 361 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 369 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |