blob: 34d1d012015f21b228a93139ddb8fef4eda59411 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <WebKit/WebKit.h>
#import "ios/web/web_state/ui/crw_web_view_handler.h"
@protocol CRWWebViewNavigationObserverDelegate;
// Observes the navigation-related events of a WebView, making sure that the
// different navigaiton events are taken into account.
@interface CRWWebViewNavigationObserver : CRWWebViewHandler
@property(nonatomic, weak) id<CRWWebViewNavigationObserverDelegate> delegate;
// The webView to observe.
@property(nonatomic, weak) WKWebView* webView;