blob: 634e3b7af7e91804468e8c7e3638a05b98552833 [file] [log] [blame]
// Copyright 2017 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.
module content.mojom;
import "mojo/public/mojom/base/values.mojom";
import "third_party/blink/public/mojom/fetch/fetch_api_request.mojom";
import "url/mojom/origin.mojom";
import "url/mojom/url.mojom";
[Native]
enum MixedContentContextType;
// Provided by the renderer ----------------------------------------------------
//
// This struct holds parameters sent by the renderer to the browser. It is only
// used in PlzNavigate (since in the current architecture, the renderer does not
// inform the browser of navigations until they commit).
// This struct is not used outside of the PlzNavigate project.
// PlzNavigate: parameters needed to start a navigation on the IO thread,
// following a renderer-initiated navigation request.
struct BeginNavigationParams {
// Additional HTTP request headers.
string headers;
// net::URLRequest load flags (net::LOAD_NORMAL) by default).
int32 load_flags;
// True if the ServiceWorker should be skipped.
bool skip_service_worker;
// Indicates the request context type.
blink.mojom.RequestContextType request_context_type;
// The mixed content context type for potential mixed content checks.
MixedContentContextType mixed_content_context_type;
// Whether or not the navigation has been initiated by a form submission.
bool is_form_submission;
// See WebSearchableFormData for a description of these.
url.mojom.Url searchable_form_url;
string searchable_form_encoding;
// If the transition type is a client side redirect, then this holds the URL
// of the page that had the client side redirect.
url.mojom.Url client_side_redirect_url;
// If the navigation is renderer-initiated and the renderer is being
// inspected by DevTools, this field is non-null and contains the
// initiator information in DevTools protocol format. See
// https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Initiator
// for details.
mojo_base.mojom.DictionaryValue? devtools_initiator;
};