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

Unified Diff: ios/web/public/web_state/web_state_delegate.h

Issue 2614023006: [ios] Removed -[CRWWebDelegate openURLWithParams:]. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ios/web/public/web_state/web_state_delegate.h
diff --git a/ios/web/public/web_state/web_state_delegate.h b/ios/web/public/web_state/web_state_delegate.h
index 358bed7b4eac29bc2a942a8b54ebe305f8270360..2392d117e2710d802225a58922aebef47b7d55b9 100644
--- a/ios/web/public/web_state/web_state_delegate.h
+++ b/ios/web/public/web_state/web_state_delegate.h
@@ -8,12 +8,12 @@
#include <set>
#include "base/callback.h"
+#import "ios/web/public/web_state/web_state.h"
namespace web {
struct ContextMenuParams;
class JavaScriptDialogPresenter;
-class WebState;
// Objects implement this interface to get notified about changes in the
// WebState and to provide necessary functionality.
@@ -21,6 +21,11 @@ class WebStateDelegate {
public:
WebStateDelegate();
+ // Returns the WebState the URL is opened in, or nullptr if the URL wasn't
+ // opened immediately.
+ virtual WebState* OpenURLFromWebState(WebState*,
+ const WebState::OpenURLParams&);
+
// Notifies the delegate that the page has made some progress loading.
// |progress| is a value between 0.0 (nothing loaded) to 1.0 (page fully
// loaded).
« no previous file with comments | « ios/web/public/web_state/ui/crw_web_delegate.h ('k') | ios/web/public/web_state/web_state_delegate_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698