| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 void ShowWebInterstitial(WebInterstitialImpl* interstitial); | 241 void ShowWebInterstitial(WebInterstitialImpl* interstitial); |
| 242 | 242 |
| 243 // Called to dismiss the currently-displayed transient content view. | 243 // Called to dismiss the currently-displayed transient content view. |
| 244 void ClearTransientContentView(); | 244 void ClearTransientContentView(); |
| 245 | 245 |
| 246 // Notifies the delegate that the load progress was updated. | 246 // Notifies the delegate that the load progress was updated. |
| 247 void SendChangeLoadProgress(double progress); | 247 void SendChangeLoadProgress(double progress); |
| 248 // Notifies the delegate that a context menu needs handling. | 248 // Notifies the delegate that a context menu needs handling. |
| 249 bool HandleContextMenu(const ContextMenuParams& params); | 249 bool HandleContextMenu(const ContextMenuParams& params); |
| 250 | 250 |
| 251 // Notifies the delegate that a Form Repost dialog needs to be presented. |
| 252 void ShowRepostFormWarningDialog(const base::Callback<void(bool)>& callback); |
| 253 |
| 251 // Notifies the delegate that a JavaScript dialog needs to be presented. | 254 // Notifies the delegate that a JavaScript dialog needs to be presented. |
| 252 void RunJavaScriptDialog(const GURL& origin_url, | 255 void RunJavaScriptDialog(const GURL& origin_url, |
| 253 JavaScriptDialogType java_script_dialog_type, | 256 JavaScriptDialogType java_script_dialog_type, |
| 254 NSString* message_text, | 257 NSString* message_text, |
| 255 NSString* default_prompt_text, | 258 NSString* default_prompt_text, |
| 256 const DialogClosedCallback& callback); | 259 const DialogClosedCallback& callback); |
| 257 | 260 |
| 258 // Notifies the delegate that request receives an authentication challenge | 261 // Notifies the delegate that request receives an authentication challenge |
| 259 // and is unable to respond using cached credentials. | 262 // and is unable to respond using cached credentials. |
| 260 void OnAuthRequired(NSURLProtectionSpace* protection_space, | 263 void OnAuthRequired(NSURLProtectionSpace* protection_space, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 354 |
| 352 // Image Fetcher used to images. | 355 // Image Fetcher used to images. |
| 353 std::unique_ptr<ImageDataFetcher> image_fetcher_; | 356 std::unique_ptr<ImageDataFetcher> image_fetcher_; |
| 354 | 357 |
| 355 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 358 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 356 }; | 359 }; |
| 357 | 360 |
| 358 } // namespace web | 361 } // namespace web |
| 359 | 362 |
| 360 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 363 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |