// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_WEB_VIEW_PUBLIC_CWV_NAVIGATION_ACTION_H_
#define IOS_WEB_VIEW_PUBLIC_CWV_NAVIGATION_ACTION_H_
#import <Foundation/Foundation.h>
#import "cwv_export.h"
#import "cwv_navigation_type.h"
NS_ASSUME_NONNULL_BEGIN
// Encapsulates information about an action which caused a navigation.
CWV_EXPORT
@interface CWVNavigationAction : NSObject
// Destination request associated with the action.
@property(nonatomic, copy, readonly) NSURLRequest* request;
// YES if the action was caused by a user action (e.g. link tap).
@property(nonatomic, readonly, getter=isUserInitiated) BOOL userInitiated;
// The type of action that triggered the navigation.
@property(nonatomic, readonly) CWVNavigationType navigationType;
@end
NS_ASSUME_NONNULL_END
#endif // IOS_WEB_VIEW_PUBLIC_CWV_NAVIGATION_ACTION_H_