blob: 2ae3c278c87050d0e88601c6f2ef296a663157bf [file] [log] [blame]
// Copyright 2018 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.
#ifndef IOS_CHROME_BROWSER_UI_CHROME_LOAD_PARAMS_H_
#define IOS_CHROME_BROWSER_UI_CHROME_LOAD_PARAMS_H_
#import "ios/web/public/navigation_manager.h"
#include "ui/base/window_open_disposition.h"
// Chrome wrapper around web::NavigationManager::WebLoadParams to add the
// parameters needed by chrome. This is used when a URL is opened.
struct ChromeLoadParams {
public:
// The wrapped params.
web::NavigationManager::WebLoadParams web_params;
// The disposition of the URL being opened.
WindowOpenDisposition disposition;
explicit ChromeLoadParams(
const web::NavigationManager::WebLoadParams& web_params);
explicit ChromeLoadParams(const GURL& url);
~ChromeLoadParams();
// Allow copying ChromeLoadParams.
ChromeLoadParams(const ChromeLoadParams& other);
ChromeLoadParams& operator=(const ChromeLoadParams& other);
};
#endif // IOS_CHROME_BROWSER_UI_CHROME_LOAD_PARAMS_H_