Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: ios/web/web_state/web_state_impl.h

Issue 2737353006: Replaced webPageOrderedClose with WebStateDelegate API. (Closed)
Patch Set: Addressed review comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 const DialogClosedCallback& callback); 254 const DialogClosedCallback& callback);
255 255
256 // Instructs the delegate to create a new web state. Called when this WebState 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; 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; 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. 259 // |initiated_by_user| is true if action was caused by the user.
260 WebState* CreateNewWebState(const GURL& url, 260 WebState* CreateNewWebState(const GURL& url,
261 const GURL& opener_url, 261 const GURL& opener_url,
262 bool initiated_by_user); 262 bool initiated_by_user);
263 263
264 // Instructs the delegate to close this web state. Called when the page calls
265 // wants to close self by calling window.close() JavaScript API.
266 virtual void CloseWebState();
267
264 // Notifies the delegate that request receives an authentication challenge 268 // Notifies the delegate that request receives an authentication challenge
265 // and is unable to respond using cached credentials. 269 // and is unable to respond using cached credentials.
266 void OnAuthRequired(NSURLProtectionSpace* protection_space, 270 void OnAuthRequired(NSURLProtectionSpace* protection_space,
267 NSURLCredential* proposed_credential, 271 NSURLCredential* proposed_credential,
268 const WebStateDelegate::AuthCallback& callback); 272 const WebStateDelegate::AuthCallback& callback);
269 273
270 // Cancels all dialogs associated with this web_state. 274 // Cancels all dialogs associated with this web_state.
271 void CancelDialogs(); 275 void CancelDialogs();
272 276
273 // NavigationManagerDelegate: 277 // NavigationManagerDelegate:
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 364
361 // Mojo interface registry for this WebState. 365 // Mojo interface registry for this WebState.
362 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_; 366 std::unique_ptr<service_manager::InterfaceRegistry> mojo_interface_registry_;
363 367
364 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); 368 DISALLOW_COPY_AND_ASSIGN(WebStateImpl);
365 }; 369 };
366 370
367 } // namespace web 371 } // namespace web
368 372
369 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ 373 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/web_state_delegate_bridge_unittest.mm ('k') | ios/web/web_state/web_state_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698