| 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).
|
|
|