blob: f0664e0e6a3cdc24e5a003b59a04e57ceba38ec2 [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 FUCHSIA_ENGINE_COMMON_H_
#define FUCHSIA_ENGINE_COMMON_H_
#include <zircon/processargs.h>
#include "fuchsia/engine/web_engine_export.h"
// This file contains constants and functions shared between Context and
// ContextProvider processes.
// Switch passed to Context process when running in incognito mode, i.e. when
// there is no kWebContextDataPath.
WEB_ENGINE_EXPORT extern const char kIncognitoSwitch[];
// Switch passed to Context process when enabling remote debugging. It takes
// a comma-separated list of remote debugger handle IDs as an argument.
WEB_ENGINE_EXPORT extern const char kRemoteDebuggerHandles[];
// Switch passed to Context process to customize the UserAgent string.
WEB_ENGINE_EXPORT extern const char kUserAgentProductAndVersion[];
// Handle ID for the Context interface request passed from ContextProvider to
// Context process.
constexpr uint32_t kContextRequestHandleId = PA_HND(PA_USER0, 0);
#endif // FUCHSIA_ENGINE_COMMON_H_