2009-09-09 22:00:14 +00:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8 -*- */
|
2009-08-18 19:05:15 +00:00
|
|
|
/* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-07-11 06:33:10 +00:00
|
|
|
|
2013-11-27 07:59:41 +00:00
|
|
|
include protocol PBackground;
|
2012-08-02 06:02:29 +00:00
|
|
|
include protocol PBlob;
|
2010-07-19 18:33:33 +00:00
|
|
|
include protocol PBrowser;
|
2016-03-22 18:07:08 +00:00
|
|
|
include protocol PCompositorBridge;
|
2014-06-11 05:44:13 +00:00
|
|
|
include protocol PContentBridge;
|
2015-04-14 01:08:00 +00:00
|
|
|
include protocol PContentPermissionRequest;
|
2014-05-13 17:13:00 +00:00
|
|
|
include protocol PCycleCollectWithLogs;
|
2010-11-24 14:15:03 +00:00
|
|
|
include protocol PCrashReporter;
|
2015-04-22 19:55:23 +00:00
|
|
|
include protocol PPSMContentDownloader;
|
2010-09-15 22:55:08 +00:00
|
|
|
include protocol PExternalHelperApp;
|
2015-08-25 23:42:21 +00:00
|
|
|
include protocol PHandlerService;
|
2012-06-19 23:14:39 +00:00
|
|
|
include protocol PDeviceStorageRequest;
|
2014-03-25 18:37:13 +00:00
|
|
|
include protocol PFileDescriptorSet;
|
2011-10-05 22:15:45 +00:00
|
|
|
include protocol PHal;
|
2015-09-22 19:09:42 +00:00
|
|
|
include protocol PHeapSnapshotTempFileHelper;
|
2015-01-17 02:34:47 +00:00
|
|
|
include protocol PProcessHangMonitor;
|
2012-08-29 12:24:48 +00:00
|
|
|
include protocol PImageBridge;
|
2015-06-18 15:46:36 +00:00
|
|
|
include protocol PMedia;
|
2011-10-05 22:15:45 +00:00
|
|
|
include protocol PNecko;
|
2015-02-10 10:49:03 +00:00
|
|
|
include protocol PGMPContent;
|
|
|
|
include protocol PGMPService;
|
2014-10-29 15:05:36 +00:00
|
|
|
include protocol PPluginModule;
|
2015-02-10 10:49:03 +00:00
|
|
|
include protocol PGMP;
|
2014-10-28 15:59:08 +00:00
|
|
|
include protocol PPrinting;
|
2016-05-15 17:32:09 +00:00
|
|
|
include protocol PSendStream;
|
2014-11-13 00:31:00 +00:00
|
|
|
include protocol POfflineCacheUpdate;
|
2016-03-29 18:32:41 +00:00
|
|
|
include protocol PRenderFrame;
|
2014-07-14 17:22:26 +00:00
|
|
|
include protocol PScreenManager;
|
2013-04-03 22:13:17 +00:00
|
|
|
include protocol PSpeechSynthesis;
|
2011-10-05 22:15:45 +00:00
|
|
|
include protocol PStorage;
|
|
|
|
include protocol PTestShell;
|
2013-07-03 07:24:32 +00:00
|
|
|
include protocol PJavaScript;
|
2014-07-01 22:24:27 +00:00
|
|
|
include protocol PRemoteSpellcheckEngine;
|
2015-09-21 12:54:00 +00:00
|
|
|
include protocol PWebBrowserPersistDocument;
|
2015-04-21 22:29:18 +00:00
|
|
|
include protocol PWebrtcGlobal;
|
2015-03-26 03:16:21 +00:00
|
|
|
include protocol PPresentation;
|
2016-11-18 21:54:57 +00:00
|
|
|
include protocol PURLClassifier;
|
2015-09-17 21:23:13 +00:00
|
|
|
include protocol PVRManager;
|
2016-09-21 09:25:33 +00:00
|
|
|
include protocol PVideoDecoderManager;
|
2016-06-07 09:46:03 +00:00
|
|
|
include protocol PFlyWebPublishedServer;
|
2012-08-23 19:33:46 +00:00
|
|
|
include DOMTypes;
|
2013-07-10 22:05:39 +00:00
|
|
|
include JavaScriptTypes;
|
2013-01-17 20:17:33 +00:00
|
|
|
include InputStreamParams;
|
2013-07-10 17:07:50 +00:00
|
|
|
include PTabContext;
|
2012-08-23 19:33:46 +00:00
|
|
|
include URIParams;
|
2014-10-29 15:05:36 +00:00
|
|
|
include PluginTypes;
|
2013-06-03 10:14:40 +00:00
|
|
|
include ProtocolTypes;
|
2015-10-02 16:13:52 +00:00
|
|
|
include PBackgroundSharedTypes;
|
2015-04-14 01:08:00 +00:00
|
|
|
include PContentPermission;
|
2016-07-11 14:04:04 +00:00
|
|
|
include ServiceWorkerConfiguration;
|
2015-08-02 20:59:33 +00:00
|
|
|
include GraphicsMessages;
|
2015-08-11 18:26:27 +00:00
|
|
|
include ProfilerTypes;
|
2017-01-27 00:35:54 +00:00
|
|
|
include MemoryReportTypes;
|
2009-09-09 22:00:14 +00:00
|
|
|
|
2014-08-18 09:06:11 +00:00
|
|
|
// Workaround to prevent error if PContentChild.cpp & PContentBridgeParent.cpp
|
|
|
|
// are put into different UnifiedProtocolsXX.cpp files.
|
|
|
|
// XXX Remove this once bug 1069073 is fixed
|
|
|
|
include "mozilla/dom/PContentBridgeParent.h";
|
|
|
|
|
2013-10-01 19:25:07 +00:00
|
|
|
using GeoPosition from "nsGeoPositionIPCSerialiser.h";
|
2015-12-31 19:04:24 +00:00
|
|
|
using AlertNotificationType from "mozilla/AlertNotificationIPCSerializer.h";
|
2010-09-21 04:16:37 +00:00
|
|
|
|
2013-10-01 19:25:07 +00:00
|
|
|
using struct ChromePackage from "mozilla/chrome/RegistryMessageUtils.h";
|
2015-07-16 22:50:07 +00:00
|
|
|
using struct SubstitutionMapping from "mozilla/chrome/RegistryMessageUtils.h";
|
2013-10-01 19:25:07 +00:00
|
|
|
using struct OverrideMapping from "mozilla/chrome/RegistryMessageUtils.h";
|
|
|
|
using base::ChildPrivileges from "base/process_util.h";
|
2014-12-29 23:13:54 +00:00
|
|
|
using base::ProcessId from "base/process.h";
|
2013-10-01 19:25:07 +00:00
|
|
|
using struct IPC::Permission from "mozilla/net/NeckoMessageUtils.h";
|
|
|
|
using class IPC::Principal from "mozilla/dom/PermissionMessageUtils.h";
|
|
|
|
using struct mozilla::null_t from "ipc/IPCMessageUtils.h";
|
|
|
|
using mozilla::dom::NativeThreadId from "mozilla/dom/TabMessageUtils.h";
|
|
|
|
using mozilla::hal::ProcessPriority from "mozilla/HalTypes.h";
|
2015-09-23 18:49:05 +00:00
|
|
|
using mozilla::gfx::IntSize from "mozilla/gfx/2D.h";
|
2014-10-29 18:11:00 +00:00
|
|
|
using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h";
|
2014-10-24 00:28:00 +00:00
|
|
|
using mozilla::dom::ContentParentId from "mozilla/dom/ipc/IdType.h";
|
2016-05-18 21:17:34 +00:00
|
|
|
using mozilla::LayoutDeviceIntPoint from "Units.h";
|
2015-04-22 14:58:15 +00:00
|
|
|
using struct LookAndFeelInt from "mozilla/widget/WidgetMessageUtils.h";
|
2016-08-10 06:18:29 +00:00
|
|
|
using class mozilla::dom::MessagePort from "mozilla/dom/MessagePort.h";
|
|
|
|
using class mozilla::dom::ipc::StructuredCloneData from "mozilla/dom/ipc/StructuredCloneData.h";
|
2015-10-30 19:30:00 +00:00
|
|
|
using mozilla::DataStorageType from "ipc/DataStorageIPCUtils.h";
|
2017-01-12 16:38:48 +00:00
|
|
|
using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
|
2016-03-29 18:32:41 +00:00
|
|
|
using struct mozilla::layers::TextureFactoryIdentifier from "mozilla/layers/CompositorTypes.h";
|
2016-06-07 09:46:03 +00:00
|
|
|
using struct mozilla::dom::FlyWebPublishOptions from "mozilla/dom/FlyWebPublishOptionsIPCSerializer.h";
|
2016-06-22 14:16:40 +00:00
|
|
|
using mozilla::Telemetry::Accumulation from "mozilla/TelemetryComms.h";
|
|
|
|
using mozilla::Telemetry::KeyedAccumulation from "mozilla/TelemetryComms.h";
|
2017-01-16 04:12:00 +00:00
|
|
|
using mozilla::Telemetry::ScalarAction from "mozilla/TelemetryComms.h";
|
|
|
|
using mozilla::Telemetry::KeyedScalarAction from "mozilla/TelemetryComms.h";
|
2009-09-09 22:00:14 +00:00
|
|
|
|
2014-07-25 20:17:36 +00:00
|
|
|
union ChromeRegistryItem
|
|
|
|
{
|
|
|
|
ChromePackage;
|
|
|
|
OverrideMapping;
|
2015-07-16 22:50:07 +00:00
|
|
|
SubstitutionMapping;
|
2014-07-25 20:17:36 +00:00
|
|
|
};
|
|
|
|
|
2009-07-11 06:33:10 +00:00
|
|
|
namespace mozilla {
|
2009-09-09 22:00:14 +00:00
|
|
|
namespace dom {
|
2009-07-11 06:33:10 +00:00
|
|
|
|
2016-11-15 13:58:29 +00:00
|
|
|
// Used on Android/B2G to pass the list of fonts on the device
|
|
|
|
// to the child process
|
2011-01-13 04:04:42 +00:00
|
|
|
struct FontListEntry {
|
2011-09-23 11:15:36 +00:00
|
|
|
nsString familyName;
|
|
|
|
nsString faceName;
|
2011-01-13 04:04:42 +00:00
|
|
|
nsCString filepath;
|
2012-08-22 15:56:38 +00:00
|
|
|
uint16_t weight;
|
|
|
|
int16_t stretch;
|
|
|
|
uint8_t italic;
|
|
|
|
uint8_t index;
|
2014-06-30 18:05:29 +00:00
|
|
|
bool isHidden;
|
2011-01-13 04:04:42 +00:00
|
|
|
};
|
|
|
|
|
2016-11-15 13:58:29 +00:00
|
|
|
// Used on Mac OS X to pass the list of font families (not faces)
|
|
|
|
// from chrome to content processes.
|
|
|
|
// The entryType field distinguishes several types of font family
|
|
|
|
// record; see gfxMacPlatformFontList.h for values and meaning.
|
|
|
|
struct FontFamilyListEntry {
|
|
|
|
nsString familyName;
|
|
|
|
uint8_t entryType;
|
|
|
|
};
|
|
|
|
|
2013-01-25 19:05:24 +00:00
|
|
|
struct DeviceStorageFreeSpaceParams
|
2012-07-31 19:28:23 +00:00
|
|
|
{
|
2012-08-30 22:17:37 +00:00
|
|
|
nsString type;
|
2013-05-11 09:10:18 +00:00
|
|
|
nsString storageName;
|
2012-07-31 19:28:23 +00:00
|
|
|
};
|
|
|
|
|
2013-01-25 19:05:24 +00:00
|
|
|
struct DeviceStorageUsedSpaceParams
|
|
|
|
{
|
|
|
|
nsString type;
|
2013-05-11 09:10:18 +00:00
|
|
|
nsString storageName;
|
2013-01-25 19:05:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DeviceStorageAvailableParams
|
|
|
|
{
|
|
|
|
nsString type;
|
2013-05-11 09:10:18 +00:00
|
|
|
nsString storageName;
|
2013-01-25 19:05:24 +00:00
|
|
|
};
|
|
|
|
|
2014-02-19 02:48:05 +00:00
|
|
|
struct DeviceStorageStatusParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
};
|
|
|
|
|
2013-09-06 06:11:58 +00:00
|
|
|
struct DeviceStorageFormatParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
};
|
|
|
|
|
2014-03-04 11:24:19 +00:00
|
|
|
struct DeviceStorageMountParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct DeviceStorageUnmountParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
};
|
|
|
|
|
2012-06-19 23:14:39 +00:00
|
|
|
struct DeviceStorageAddParams
|
|
|
|
{
|
2012-08-30 22:17:37 +00:00
|
|
|
nsString type;
|
2013-05-11 09:10:18 +00:00
|
|
|
nsString storageName;
|
2013-04-18 14:13:23 +00:00
|
|
|
nsString relpath;
|
2012-08-09 22:41:18 +00:00
|
|
|
PBlob blob;
|
2012-06-19 23:14:39 +00:00
|
|
|
};
|
|
|
|
|
2014-06-10 08:51:28 +00:00
|
|
|
struct DeviceStorageAppendParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
nsString relpath;
|
|
|
|
PBlob blob;
|
|
|
|
};
|
|
|
|
|
2014-01-17 01:01:27 +00:00
|
|
|
struct DeviceStorageCreateFdParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
nsString relpath;
|
|
|
|
};
|
|
|
|
|
2012-06-19 23:14:39 +00:00
|
|
|
struct DeviceStorageGetParams
|
|
|
|
{
|
2012-08-30 22:17:37 +00:00
|
|
|
nsString type;
|
2013-05-11 09:10:18 +00:00
|
|
|
nsString storageName;
|
2013-04-18 14:13:23 +00:00
|
|
|
nsString rootDir;
|
|
|
|
nsString relpath;
|
2012-06-19 23:14:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DeviceStorageDeleteParams
|
|
|
|
{
|
2012-08-30 22:17:37 +00:00
|
|
|
nsString type;
|
2013-05-11 09:10:18 +00:00
|
|
|
nsString storageName;
|
2013-04-18 14:13:23 +00:00
|
|
|
nsString relpath;
|
2012-06-19 23:14:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DeviceStorageEnumerationParams
|
|
|
|
{
|
2012-08-30 22:17:37 +00:00
|
|
|
nsString type;
|
2013-05-11 09:10:18 +00:00
|
|
|
nsString storageName;
|
|
|
|
nsString rootdir;
|
2012-08-22 15:56:38 +00:00
|
|
|
uint64_t since;
|
2012-06-19 23:14:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
union DeviceStorageParams
|
|
|
|
{
|
|
|
|
DeviceStorageAddParams;
|
2014-06-10 08:51:28 +00:00
|
|
|
DeviceStorageAppendParams;
|
2014-01-17 01:01:27 +00:00
|
|
|
DeviceStorageCreateFdParams;
|
2012-06-19 23:14:39 +00:00
|
|
|
DeviceStorageGetParams;
|
|
|
|
DeviceStorageDeleteParams;
|
|
|
|
DeviceStorageEnumerationParams;
|
2013-01-25 19:05:24 +00:00
|
|
|
DeviceStorageFreeSpaceParams;
|
|
|
|
DeviceStorageUsedSpaceParams;
|
|
|
|
DeviceStorageAvailableParams;
|
2014-02-19 02:48:05 +00:00
|
|
|
DeviceStorageStatusParams;
|
2013-09-06 06:11:58 +00:00
|
|
|
DeviceStorageFormatParams;
|
2014-03-04 11:24:19 +00:00
|
|
|
DeviceStorageMountParams;
|
|
|
|
DeviceStorageUnmountParams;
|
2012-06-19 23:14:39 +00:00
|
|
|
};
|
2012-08-02 06:02:29 +00:00
|
|
|
|
2015-12-19 01:17:46 +00:00
|
|
|
struct DeviceStorageLocationInfo {
|
|
|
|
nsString music;
|
|
|
|
nsString pictures;
|
|
|
|
nsString videos;
|
|
|
|
nsString sdcard;
|
|
|
|
nsString apps;
|
|
|
|
nsString crashes;
|
|
|
|
};
|
|
|
|
|
2012-08-22 20:00:21 +00:00
|
|
|
union PrefValue {
|
|
|
|
nsCString;
|
|
|
|
int32_t;
|
|
|
|
bool;
|
|
|
|
};
|
|
|
|
|
|
|
|
union MaybePrefValue {
|
|
|
|
PrefValue;
|
|
|
|
null_t;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PrefSetting {
|
|
|
|
nsCString name;
|
|
|
|
MaybePrefValue defaultValue;
|
|
|
|
MaybePrefValue userValue;
|
|
|
|
};
|
|
|
|
|
2015-10-30 19:30:00 +00:00
|
|
|
struct DataStorageItem {
|
|
|
|
nsCString key;
|
|
|
|
nsCString value;
|
|
|
|
DataStorageType type;
|
|
|
|
};
|
|
|
|
|
2014-10-22 09:50:00 +00:00
|
|
|
struct ClipboardCapabilities {
|
|
|
|
bool supportsSelectionClipboard;
|
|
|
|
bool supportsFindClipboard;
|
|
|
|
};
|
|
|
|
|
2015-03-10 09:32:00 +00:00
|
|
|
union FileDescOrError {
|
|
|
|
FileDescriptor;
|
|
|
|
nsresult;
|
|
|
|
};
|
|
|
|
|
2015-03-24 14:29:16 +00:00
|
|
|
struct DomainPolicyClone
|
|
|
|
{
|
|
|
|
bool active;
|
|
|
|
URIParams[] blacklist;
|
|
|
|
URIParams[] whitelist;
|
|
|
|
URIParams[] superBlacklist;
|
|
|
|
URIParams[] superWhitelist;
|
|
|
|
};
|
|
|
|
|
2015-04-23 22:05:29 +00:00
|
|
|
|
|
|
|
|
2015-10-29 23:30:57 +00:00
|
|
|
struct FrameScriptInfo
|
|
|
|
{
|
|
|
|
nsString url;
|
|
|
|
bool runInGlobalScope;
|
|
|
|
};
|
|
|
|
|
2015-11-04 19:08:14 +00:00
|
|
|
struct AndroidSystemInfo
|
|
|
|
{
|
|
|
|
nsString device;
|
|
|
|
nsString manufacturer;
|
|
|
|
nsString release_version;
|
|
|
|
nsString hardware;
|
|
|
|
uint32_t sdk_version;
|
|
|
|
bool isTablet;
|
|
|
|
};
|
|
|
|
|
2016-07-14 07:04:21 +00:00
|
|
|
struct GetFilesResponseSuccess
|
|
|
|
{
|
|
|
|
PBlob[] blobs;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GetFilesResponseFailure
|
|
|
|
{
|
|
|
|
nsresult errorCode;
|
|
|
|
};
|
|
|
|
|
|
|
|
union GetFilesResponseResult
|
|
|
|
{
|
|
|
|
GetFilesResponseSuccess;
|
|
|
|
GetFilesResponseFailure;
|
|
|
|
};
|
|
|
|
|
2017-02-08 09:19:01 +00:00
|
|
|
struct FileCreationSuccessResult
|
|
|
|
{
|
|
|
|
PBlob blob;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FileCreationErrorResult
|
|
|
|
{
|
|
|
|
nsresult errorCode;
|
|
|
|
};
|
|
|
|
|
|
|
|
union FileCreationResult
|
|
|
|
{
|
|
|
|
FileCreationSuccessResult;
|
|
|
|
FileCreationErrorResult;
|
|
|
|
};
|
|
|
|
|
2016-07-17 14:50:50 +00:00
|
|
|
struct BlobURLRegistrationData
|
|
|
|
{
|
|
|
|
nsCString url;
|
|
|
|
PBlob blob;
|
|
|
|
Principal principal;
|
|
|
|
};
|
|
|
|
|
2016-11-01 03:25:19 +00:00
|
|
|
struct GMPAPITags
|
|
|
|
{
|
|
|
|
nsCString api;
|
|
|
|
nsCString[] tags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GMPCapabilityData
|
|
|
|
{
|
|
|
|
nsCString name;
|
|
|
|
nsCString version;
|
|
|
|
GMPAPITags[] capabilities;
|
|
|
|
};
|
|
|
|
|
2017-02-05 05:52:38 +00:00
|
|
|
struct XPCOMInitData
|
|
|
|
{
|
|
|
|
bool isOffline;
|
|
|
|
bool isConnected;
|
|
|
|
int32_t captivePortalState;
|
|
|
|
bool isLangRTL;
|
|
|
|
bool haveBidiKeyboards;
|
|
|
|
nsString[] dictionaries;
|
|
|
|
ClipboardCapabilities clipboardCaps;
|
|
|
|
DomainPolicyClone domainPolicy;
|
|
|
|
/* used on MacOSX only */
|
|
|
|
FontFamilyListEntry[] fontFamilies;
|
|
|
|
OptionalURIParams userContentSheetURL;
|
|
|
|
PrefSetting[] prefs;
|
|
|
|
};
|
|
|
|
|
2017-01-17 04:05:46 +00:00
|
|
|
struct GfxInfoFeatureStatus
|
|
|
|
{
|
|
|
|
int32_t feature;
|
|
|
|
int32_t status;
|
|
|
|
nsCString failureId;
|
|
|
|
};
|
|
|
|
|
2017-01-16 15:51:43 +00:00
|
|
|
/**
|
|
|
|
* The PContent protocol is a top-level protocol between the UI process
|
|
|
|
* and a content process. There is exactly one PContentParent/PContentChild pair
|
|
|
|
* for each content process.
|
|
|
|
*/
|
2016-09-30 23:20:50 +00:00
|
|
|
nested(upto inside_cpow) sync protocol PContent
|
2009-07-11 06:33:10 +00:00
|
|
|
{
|
2012-08-02 06:02:29 +00:00
|
|
|
manages PBlob;
|
2010-07-19 18:33:33 +00:00
|
|
|
manages PBrowser;
|
2015-04-14 01:08:00 +00:00
|
|
|
manages PContentPermissionRequest;
|
2010-11-24 14:15:03 +00:00
|
|
|
manages PCrashReporter;
|
2014-05-13 17:13:00 +00:00
|
|
|
manages PCycleCollectWithLogs;
|
2012-06-19 23:14:39 +00:00
|
|
|
manages PDeviceStorageRequest;
|
2015-04-22 19:55:23 +00:00
|
|
|
manages PPSMContentDownloader;
|
2010-09-15 22:55:08 +00:00
|
|
|
manages PExternalHelperApp;
|
2014-03-25 18:37:13 +00:00
|
|
|
manages PFileDescriptorSet;
|
2011-10-05 22:15:45 +00:00
|
|
|
manages PHal;
|
2015-08-25 23:42:21 +00:00
|
|
|
manages PHandlerService;
|
2015-09-22 19:09:42 +00:00
|
|
|
manages PHeapSnapshotTempFileHelper;
|
2015-06-18 15:46:36 +00:00
|
|
|
manages PMedia;
|
2011-10-05 22:15:45 +00:00
|
|
|
manages PNecko;
|
2014-11-13 00:31:00 +00:00
|
|
|
manages POfflineCacheUpdate;
|
2014-10-28 15:59:08 +00:00
|
|
|
manages PPrinting;
|
2016-05-15 17:32:09 +00:00
|
|
|
manages PSendStream;
|
2014-07-14 17:22:26 +00:00
|
|
|
manages PScreenManager;
|
2013-04-03 22:13:17 +00:00
|
|
|
manages PSpeechSynthesis;
|
2011-10-05 22:15:45 +00:00
|
|
|
manages PStorage;
|
|
|
|
manages PTestShell;
|
2013-07-03 07:24:32 +00:00
|
|
|
manages PJavaScript;
|
2014-07-01 22:24:27 +00:00
|
|
|
manages PRemoteSpellcheckEngine;
|
2015-09-21 12:54:00 +00:00
|
|
|
manages PWebBrowserPersistDocument;
|
2015-04-21 22:29:18 +00:00
|
|
|
manages PWebrtcGlobal;
|
2015-03-26 03:16:21 +00:00
|
|
|
manages PPresentation;
|
2016-06-07 09:46:03 +00:00
|
|
|
manages PFlyWebPublishedServer;
|
2016-11-18 21:54:57 +00:00
|
|
|
manages PURLClassifier;
|
2009-08-25 23:07:22 +00:00
|
|
|
|
2012-06-12 22:01:25 +00:00
|
|
|
both:
|
|
|
|
// Depending on exactly how the new browser is being created, it might be
|
|
|
|
// created from either the child or parent process!
|
|
|
|
//
|
|
|
|
// The child creates the PBrowser as part of
|
Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".
There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.
I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 18:32:37 +00:00
|
|
|
// TabChild::BrowserFrameProvideWindow (which happens when the child's
|
|
|
|
// content calls window.open()), and the parent creates the PBrowser as part
|
2016-10-15 01:46:26 +00:00
|
|
|
// of ContentParent::CreateBrowser.
|
Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".
There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.
I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 18:32:37 +00:00
|
|
|
//
|
2016-10-15 01:46:26 +00:00
|
|
|
// When the parent constructs a PBrowser, the child trusts the attributes it
|
|
|
|
// receives from the parent. In that case, the context should be
|
|
|
|
// FrameIPCTabContext.
|
Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".
There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.
I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 18:32:37 +00:00
|
|
|
//
|
2016-10-15 01:46:26 +00:00
|
|
|
// When the child constructs a PBrowser, the parent doesn't trust the
|
|
|
|
// attributes it receives from the child. In this case, context must have
|
|
|
|
// type PopupIPCTabContext. The parent checks that if the opener is a
|
|
|
|
// browser element, the context is also for a browser element.
|
2014-06-03 21:15:27 +00:00
|
|
|
//
|
|
|
|
// Keep the last 3 attributes in sync with GetProcessAttributes!
|
2014-10-29 18:11:00 +00:00
|
|
|
async PBrowser(TabId tabId, IPCTabContext context, uint32_t chromeFlags,
|
2016-10-15 01:46:26 +00:00
|
|
|
ContentParentId cpId, bool isForBrowser);
|
2009-08-25 23:07:22 +00:00
|
|
|
|
2012-08-02 06:02:29 +00:00
|
|
|
async PBlob(BlobConstructorParams params);
|
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PFileDescriptorSet(FileDescriptor fd);
|
2014-03-25 18:37:28 +00:00
|
|
|
|
2015-09-21 12:54:00 +00:00
|
|
|
// For parent->child, aBrowser must be non-null; aOuterWindowID can
|
|
|
|
// be 0 to indicate the browser's current root document, or nonzero
|
|
|
|
// to persist a subdocument. For child->parent, arguments are
|
|
|
|
// ignored and should be null/zero.
|
2016-01-26 21:51:53 +00:00
|
|
|
async PWebBrowserPersistDocument(nullable PBrowser aBrowser,
|
|
|
|
uint64_t aOuterWindowID);
|
2015-09-21 12:54:00 +00:00
|
|
|
|
2012-06-12 22:01:25 +00:00
|
|
|
child:
|
2017-01-05 20:55:57 +00:00
|
|
|
async InitGMPService(Endpoint<PGMPServiceChild> service);
|
2017-01-05 20:54:52 +00:00
|
|
|
async InitProcessHangMonitor(Endpoint<PProcessHangMonitorChild> hangMonitor);
|
2017-01-26 22:40:17 +00:00
|
|
|
async InitContentBridgeChild(Endpoint<PContentBridgeChild> endpoint);
|
2017-01-05 20:54:52 +00:00
|
|
|
|
2016-07-20 07:18:30 +00:00
|
|
|
// Give the content process its endpoints to the compositor.
|
2016-09-20 08:15:49 +00:00
|
|
|
async InitRendering(
|
|
|
|
Endpoint<PCompositorBridgeChild> compositor,
|
|
|
|
Endpoint<PImageBridgeChild> imageBridge,
|
2016-11-08 02:21:35 +00:00
|
|
|
Endpoint<PVRManagerChild> vr,
|
|
|
|
Endpoint<PVideoDecoderManagerChild> video);
|
2016-07-18 04:24:28 +00:00
|
|
|
|
2016-09-20 08:18:50 +00:00
|
|
|
// Re-create the rendering stack using the given endpoints. This is sent
|
|
|
|
// after the compositor process has crashed. The new endpoints may be to a
|
|
|
|
// newly launched GPU process, or the compositor thread of the UI process.
|
|
|
|
async ReinitRendering(
|
|
|
|
Endpoint<PCompositorBridgeChild> compositor,
|
|
|
|
Endpoint<PImageBridgeChild> bridge,
|
2016-11-08 02:21:35 +00:00
|
|
|
Endpoint<PVRManagerChild> vr,
|
|
|
|
Endpoint<PVideoDecoderManagerChild> video);
|
2016-09-20 08:18:50 +00:00
|
|
|
|
2013-01-17 20:06:36 +00:00
|
|
|
/**
|
2014-03-12 22:48:15 +00:00
|
|
|
* Enable system-level sandboxing features, if available. Can
|
|
|
|
* usually only be performed zero or one times. The child may
|
|
|
|
* abnormally exit if this fails; the details are OS-specific.
|
2013-01-17 20:06:36 +00:00
|
|
|
*/
|
2015-10-08 05:13:09 +00:00
|
|
|
async SetProcessSandbox(MaybeFileDesc aBroker);
|
2013-01-17 20:06:36 +00:00
|
|
|
|
2017-01-27 00:35:54 +00:00
|
|
|
async RequestMemoryReport(uint32_t generation,
|
|
|
|
bool anonymize,
|
|
|
|
bool minimizeMemoryUsage,
|
|
|
|
MaybeFileDesc DMDFile);
|
2011-02-16 18:43:23 +00:00
|
|
|
|
2015-04-10 22:18:05 +00:00
|
|
|
/**
|
|
|
|
* Communication between the PuppetBidiKeyboard and the actual
|
|
|
|
* BidiKeyboard hosted by the parent
|
|
|
|
*/
|
2016-06-03 09:56:04 +00:00
|
|
|
async BidiKeyboardNotify(bool isLangRTL, bool haveBidiKeyboards);
|
2015-04-10 22:18:05 +00:00
|
|
|
|
2012-10-16 02:12:14 +00:00
|
|
|
/**
|
2014-05-13 17:13:00 +00:00
|
|
|
* Dump this process's GC and CC logs to the provided files.
|
2012-10-16 02:12:14 +00:00
|
|
|
*
|
2014-05-13 17:13:00 +00:00
|
|
|
* For documentation on the other args, see dumpGCAndCCLogsToFile in
|
2014-03-05 02:27:13 +00:00
|
|
|
* nsIMemoryInfoDumper.idl
|
2012-10-16 02:12:14 +00:00
|
|
|
*/
|
2016-01-26 21:51:53 +00:00
|
|
|
async PCycleCollectWithLogs(bool dumpAllTraces,
|
|
|
|
FileDescriptor gcLog,
|
|
|
|
FileDescriptor ccLog);
|
2012-10-16 02:12:14 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PTestShell();
|
2009-08-25 23:07:22 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async RegisterChrome(ChromePackage[] packages, SubstitutionMapping[] substitutions,
|
|
|
|
OverrideMapping[] overrides, nsCString locale, bool reset);
|
|
|
|
async RegisterChromeItem(ChromeRegistryItem item);
|
2010-03-11 05:33:00 +00:00
|
|
|
|
2016-06-06 22:23:43 +00:00
|
|
|
async ClearImageCache(bool privateLoader, bool chrome);
|
|
|
|
|
2011-09-29 06:19:26 +00:00
|
|
|
async SetOffline(bool offline);
|
2015-05-01 21:14:39 +00:00
|
|
|
async SetConnectivity(bool connectivity);
|
2016-11-17 16:35:24 +00:00
|
|
|
async SetCaptivePortalState(int32_t aState);
|
2010-05-11 12:44:12 +00:00
|
|
|
|
2012-08-23 19:33:46 +00:00
|
|
|
async NotifyVisited(URIParams uri);
|
2010-07-02 15:50:41 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PreferenceUpdate(PrefSetting pref);
|
2016-08-04 18:33:42 +00:00
|
|
|
async VarUpdate(GfxVarUpdate var);
|
2010-05-26 00:13:47 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async DataStoragePut(nsString aFilename, DataStorageItem aItem);
|
|
|
|
async DataStorageRemove(nsString aFilename, nsCString aKey, DataStorageType aType);
|
|
|
|
async DataStorageClear(nsString aFilename);
|
2015-10-30 19:30:00 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async NotifyAlertsObserver(nsCString topic, nsString data);
|
2010-09-15 16:44:57 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async GeolocationUpdate(GeoPosition somewhere);
|
2010-09-21 04:16:37 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async GeolocationError(uint16_t errorCode);
|
2014-10-23 18:31:00 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async UpdateDictionaryList(nsString[] dictionaries);
|
2014-10-03 14:52:37 +00:00
|
|
|
|
2010-10-09 18:07:38 +00:00
|
|
|
// nsIPermissionManager messages
|
2016-01-26 21:51:53 +00:00
|
|
|
async AddPermission(Permission permission);
|
2010-10-09 18:07:38 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async FlushMemory(nsString reason);
|
2010-12-11 22:36:08 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async GarbageCollect();
|
|
|
|
async CycleCollect();
|
2014-10-03 14:52:37 +00:00
|
|
|
|
2011-07-21 04:37:32 +00:00
|
|
|
/**
|
|
|
|
* Start accessibility engine in content process.
|
2016-10-20 18:34:16 +00:00
|
|
|
* @param aMsaaID is an a11y-specific unique id for the content process
|
|
|
|
* that is generated by the chrome process. Only used on
|
|
|
|
* Windows; pass 0 on other platforms.
|
2011-07-21 04:37:32 +00:00
|
|
|
*/
|
2016-10-20 18:34:16 +00:00
|
|
|
async ActivateA11y(uint32_t aMsaaID);
|
2011-07-21 04:37:32 +00:00
|
|
|
|
2016-08-29 15:06:48 +00:00
|
|
|
/**
|
|
|
|
* Shutdown accessibility engine in content process (if not in use).
|
|
|
|
*/
|
|
|
|
async ShutdownA11y();
|
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async AppInfo(nsCString version, nsCString buildID, nsCString name, nsCString UAName,
|
|
|
|
nsCString ID, nsCString vendor);
|
2011-10-04 20:31:00 +00:00
|
|
|
|
2016-11-24 15:08:31 +00:00
|
|
|
/**
|
|
|
|
* Send the remote type associated with the content process.
|
|
|
|
*/
|
|
|
|
async RemoteType(nsString aRemoteType);
|
|
|
|
|
2016-07-13 08:34:24 +00:00
|
|
|
/**
|
|
|
|
* Send ServiceWorkerRegistrationData to child process.
|
|
|
|
*/
|
|
|
|
async InitServiceWorkers(ServiceWorkerConfiguration aConfig);
|
|
|
|
|
2016-07-17 14:50:50 +00:00
|
|
|
/**
|
|
|
|
* Send BlobURLRegistrationData to child process.
|
|
|
|
*/
|
|
|
|
async InitBlobURLs(BlobURLRegistrationData[] registrations);
|
|
|
|
|
2017-02-05 05:52:38 +00:00
|
|
|
async SetXPCOMProcessAttributes(XPCOMInitData xpcomInit, StructuredCloneData initialData, LookAndFeelInt[] lookAndFeelIntCache);
|
|
|
|
|
2012-04-20 00:13:20 +00:00
|
|
|
// Notify child that last-pb-context-exited notification was observed
|
2016-01-26 21:51:53 +00:00
|
|
|
async LastPrivateDocShellDestroyed();
|
2012-04-20 00:13:20 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async FilePathUpdate(nsString storageType, nsString storageName, nsString filepath,
|
|
|
|
nsCString reasons);
|
2012-08-02 06:32:04 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async NotifyProcessPriorityChanged(ProcessPriority priority);
|
|
|
|
async MinimizeMemoryUsage();
|
2013-04-26 00:53:26 +00:00
|
|
|
|
2013-08-27 17:10:39 +00:00
|
|
|
/**
|
|
|
|
* Used to manage nsIStyleSheetService across processes.
|
|
|
|
*/
|
|
|
|
async LoadAndRegisterSheet(URIParams uri, uint32_t type);
|
|
|
|
async UnregisterSheet(URIParams uri, uint32_t type);
|
|
|
|
|
2013-12-13 16:28:46 +00:00
|
|
|
/**
|
|
|
|
* Notify idle observers in the child
|
|
|
|
*/
|
2016-01-26 21:51:53 +00:00
|
|
|
async NotifyIdleObserver(uint64_t observerId, nsCString topic, nsString str);
|
2014-08-29 00:20:27 +00:00
|
|
|
|
2014-12-29 23:13:54 +00:00
|
|
|
/**
|
|
|
|
* Called during plugin initialization to map a plugin id to a child process
|
|
|
|
* id.
|
|
|
|
*/
|
|
|
|
async AssociatePluginId(uint32_t aPluginId, ProcessId aProcessId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This call is used by async plugin initialization to notify the
|
|
|
|
* PluginModuleContentParent that the PluginModuleChromeParent's async
|
|
|
|
* init has completed.
|
|
|
|
*/
|
|
|
|
async LoadPluginResult(uint32_t aPluginId, bool aResult);
|
|
|
|
|
2014-11-18 17:50:25 +00:00
|
|
|
/**
|
|
|
|
* Control the Gecko Profiler in the child process.
|
|
|
|
*/
|
2015-08-11 18:26:27 +00:00
|
|
|
async StartProfiler(ProfilerInitParams params);
|
2014-11-18 17:50:25 +00:00
|
|
|
async StopProfiler();
|
2015-07-15 16:39:39 +00:00
|
|
|
async PauseProfiler(bool aPause);
|
2015-06-10 21:58:30 +00:00
|
|
|
|
|
|
|
async GatherProfile();
|
2014-11-18 17:50:25 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async InvokeDragSession(IPCDataTransfer[] transfers, uint32_t action);
|
2015-04-08 18:48:11 +00:00
|
|
|
|
2016-05-18 21:17:34 +00:00
|
|
|
async EndDragSession(bool aDoneDrag, bool aUserCancelled,
|
|
|
|
LayoutDeviceIntPoint aDragEndPoint);
|
2015-01-10 18:18:59 +00:00
|
|
|
|
2015-03-24 14:29:16 +00:00
|
|
|
async DomainSetChanged(uint32_t aSetType, uint32_t aChangeType, OptionalURIParams aDomain);
|
|
|
|
|
2015-01-10 18:18:59 +00:00
|
|
|
/**
|
|
|
|
* Notify the child to shutdown. The child will in turn call FinishShutdown
|
|
|
|
* and let the parent close the channel.
|
|
|
|
*/
|
|
|
|
async Shutdown();
|
|
|
|
|
2015-02-20 01:13:02 +00:00
|
|
|
async LoadProcessScript(nsString url);
|
|
|
|
|
2015-04-07 13:17:27 +00:00
|
|
|
/**
|
|
|
|
* Requests a full native update of a native plugin child window. This is
|
|
|
|
* a Windows specific call.
|
|
|
|
*/
|
|
|
|
async UpdateWindow(uintptr_t aChildId);
|
|
|
|
|
2015-03-26 03:16:21 +00:00
|
|
|
/**
|
|
|
|
* Notify the child that presentation receiver has been launched with the
|
|
|
|
* correspondent iframe.
|
|
|
|
*/
|
|
|
|
async NotifyPresentationReceiverLaunched(PBrowser aIframe, nsString aSessionId);
|
|
|
|
|
2015-08-31 05:24:35 +00:00
|
|
|
/**
|
|
|
|
* Notify the child that the info about a presentation receiver needs to be
|
|
|
|
* cleaned up.
|
|
|
|
*/
|
|
|
|
async NotifyPresentationReceiverCleanUp(nsString aSessionId);
|
|
|
|
|
2016-08-08 03:04:55 +00:00
|
|
|
/**
|
|
|
|
* Notify the child that cache is emptied.
|
|
|
|
*/
|
|
|
|
async NotifyEmptyHTTPCache();
|
|
|
|
|
2016-01-14 05:19:51 +00:00
|
|
|
/**
|
|
|
|
* Send a `push` event without data to a service worker in the child.
|
|
|
|
*/
|
2016-03-28 18:50:39 +00:00
|
|
|
async Push(nsCString scope, Principal principal, nsString messageId);
|
2016-01-14 05:19:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Send a `push` event with data to a service worker in the child.
|
|
|
|
*/
|
2016-03-28 18:50:39 +00:00
|
|
|
async PushWithData(nsCString scope, Principal principal,
|
|
|
|
nsString messageId, uint8_t[] data);
|
2016-01-14 05:19:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Send a `pushsubscriptionchange` event to a service worker in the child.
|
|
|
|
*/
|
2016-01-26 21:51:53 +00:00
|
|
|
async PushSubscriptionChange(nsCString scope, Principal principal);
|
2016-01-14 05:19:51 +00:00
|
|
|
|
2016-03-28 20:33:20 +00:00
|
|
|
/**
|
|
|
|
* Send a Push error message to all service worker clients in the child.
|
|
|
|
*/
|
2016-05-20 02:01:34 +00:00
|
|
|
async PushError(nsCString scope, Principal principal, nsString message,
|
|
|
|
uint32_t flags);
|
2016-03-28 20:33:20 +00:00
|
|
|
|
2016-03-13 13:25:23 +00:00
|
|
|
/**
|
|
|
|
* Windows specific: associate this content process with the browsers
|
|
|
|
* audio session.
|
|
|
|
*/
|
|
|
|
async SetAudioSessionData(nsID aID,
|
|
|
|
nsString aDisplayName,
|
|
|
|
nsString aIconPath);
|
2016-07-14 07:04:21 +00:00
|
|
|
|
|
|
|
async GetFilesResponse(nsID aID, GetFilesResponseResult aResult);
|
|
|
|
|
2016-07-17 14:50:50 +00:00
|
|
|
async BlobURLRegistration(nsCString aURI, PBlob aBlob,
|
|
|
|
Principal aPrincipal);
|
|
|
|
|
|
|
|
async BlobURLUnregistration(nsCString aURI);
|
|
|
|
|
2016-11-01 03:25:19 +00:00
|
|
|
|
|
|
|
async GMPsChanged(GMPCapabilityData[] capabilities);
|
|
|
|
|
2017-01-21 04:11:35 +00:00
|
|
|
|
2017-02-08 09:19:01 +00:00
|
|
|
async FileCreationResponse(nsID aID, FileCreationResult aResult);
|
|
|
|
|
2017-01-21 04:11:35 +00:00
|
|
|
/**
|
|
|
|
* Sending an activate message moves focus to the child.
|
|
|
|
*/
|
|
|
|
async Activate(PBrowser aTab);
|
|
|
|
|
|
|
|
async Deactivate(PBrowser aTab);
|
|
|
|
|
|
|
|
async ParentActivated(PBrowser aTab, bool aActivated);
|
|
|
|
|
2009-08-18 19:05:15 +00:00
|
|
|
parent:
|
2017-01-24 19:49:13 +00:00
|
|
|
async InitBackground(Endpoint<PBackgroundParent> aEndpoint);
|
|
|
|
|
2014-06-11 05:44:13 +00:00
|
|
|
sync CreateChildProcess(IPCTabContext context,
|
2014-10-29 18:11:00 +00:00
|
|
|
ProcessPriority priority,
|
|
|
|
TabId openerTabId)
|
2016-10-15 01:46:26 +00:00
|
|
|
returns (ContentParentId cpId, bool isForBrowser, TabId tabId);
|
2017-01-26 22:40:17 +00:00
|
|
|
sync BridgeToChildProcess(ContentParentId cpId)
|
|
|
|
returns (Endpoint<PContentBridgeParent> endpoint);
|
2014-06-11 05:44:13 +00:00
|
|
|
|
2015-02-10 10:49:03 +00:00
|
|
|
async CreateGMPService();
|
|
|
|
|
2014-10-29 15:05:36 +00:00
|
|
|
/**
|
2017-01-25 22:17:17 +00:00
|
|
|
* This call connects the content process to a plugin process. This call
|
|
|
|
* returns an endpoint for a new PluginModuleParent. The corresponding
|
|
|
|
* PluginModuleChild will be started up in the plugin process.
|
2014-10-29 15:05:36 +00:00
|
|
|
*/
|
2017-01-25 22:17:17 +00:00
|
|
|
sync LoadPlugin(uint32_t aPluginId)
|
|
|
|
returns (nsresult aResult, uint32_t aRunID, Endpoint<PPluginModuleParent> aEndpoint);
|
2014-10-29 15:05:36 +00:00
|
|
|
|
2015-01-16 21:03:27 +00:00
|
|
|
/**
|
|
|
|
* This call is used by asynchronous plugin instantiation to notify the
|
|
|
|
* content parent that it is now safe to initiate the plugin bridge for
|
2017-01-25 22:17:17 +00:00
|
|
|
* the specified plugin id. The endpoint for the content process part of the
|
|
|
|
* bridge is returned.
|
2015-01-16 21:03:27 +00:00
|
|
|
*/
|
2017-01-25 22:17:17 +00:00
|
|
|
sync ConnectPluginBridge(uint32_t aPluginId)
|
|
|
|
returns (nsresult rv, Endpoint<PPluginModuleParent> aEndpoint);
|
2015-01-16 21:03:27 +00:00
|
|
|
|
2015-05-01 15:07:19 +00:00
|
|
|
/**
|
|
|
|
* Return the current blocklist state for a particular plugin.
|
|
|
|
*/
|
|
|
|
sync GetBlocklistState(uint32_t aPluginId) returns (uint32_t aState);
|
|
|
|
|
2014-10-29 15:05:36 +00:00
|
|
|
/**
|
|
|
|
* This call returns the set of plugins loaded in the chrome
|
|
|
|
* process. However, in many cases this set will not have changed since the
|
|
|
|
* last FindPlugins message. Consequently, the chrome process increments an
|
|
|
|
* epoch number every time the set of plugins changes. The content process
|
|
|
|
* sends up the last epoch it observed. If the epochs are the same, the
|
|
|
|
* chrome process returns no plugins. Otherwise it returns a complete list.
|
|
|
|
*
|
|
|
|
* |pluginEpoch| is the epoch last observed by the content
|
|
|
|
* process. |newPluginEpoch| is the current epoch in the chrome process. If
|
|
|
|
* |pluginEpoch == newPluginEpoch|, then |plugins| will be left empty.
|
|
|
|
*/
|
2015-11-11 04:35:00 +00:00
|
|
|
sync FindPlugins(uint32_t pluginEpoch) returns (nsresult aResult, PluginTag[] plugins, uint32_t newPluginEpoch);
|
2014-10-29 15:05:36 +00:00
|
|
|
|
2014-05-08 22:43:53 +00:00
|
|
|
async PJavaScript();
|
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PRemoteSpellcheckEngine();
|
|
|
|
async PDeviceStorageRequest(DeviceStorageParams params);
|
2012-06-19 23:14:39 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
sync PCrashReporter(NativeThreadId tid, uint32_t processType);
|
2011-06-08 19:56:31 +00:00
|
|
|
|
2016-04-15 16:29:12 +00:00
|
|
|
/**
|
|
|
|
* Is this token compatible with the provided version?
|
|
|
|
*
|
|
|
|
* |version| The offered version to test
|
|
|
|
* Returns |True| if the offered version is compatible
|
|
|
|
*/
|
|
|
|
sync NSSU2FTokenIsCompatibleVersion(nsString version)
|
|
|
|
returns (bool result);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return whether the provided KeyHandle belongs to this Token
|
|
|
|
*
|
|
|
|
* |keyHandle| Key Handle to evaluate.
|
|
|
|
* Returns |True| if the Key Handle is ours.
|
|
|
|
*/
|
|
|
|
sync NSSU2FTokenIsRegistered(uint8_t[] keyHandle)
|
|
|
|
returns (bool isValidKeyHandle);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Generates a public/private keypair for the provided application
|
|
|
|
* and challenge, returning the pubkey, challenge response, and
|
|
|
|
* key handle in the registration data.
|
|
|
|
*
|
|
|
|
* |application| The FIDO Application data to associate with the key.
|
|
|
|
* |challenge| The Challenge to satisfy in the response.
|
|
|
|
* |registration| An array containing the pubkey, challenge response,
|
|
|
|
* and key handle.
|
|
|
|
*/
|
|
|
|
sync NSSU2FTokenRegister(uint8_t[] application, uint8_t[] challenge)
|
|
|
|
returns (uint8_t[] registration);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates a signature over the "param" arguments using the private key
|
|
|
|
* provided in the key handle argument.
|
|
|
|
*
|
|
|
|
* |application| The FIDO Application data to associate with the key.
|
|
|
|
* |challenge| The Challenge to satisfy in the response.
|
|
|
|
* |keyHandle| The Key Handle opaque object to use.
|
|
|
|
* |signature| The resulting signature.
|
|
|
|
*/
|
|
|
|
sync NSSU2FTokenSign(uint8_t[] application, uint8_t[] challenge,
|
|
|
|
uint8_t[] keyHandle)
|
|
|
|
returns (uint8_t[] signature);
|
|
|
|
|
2014-07-22 12:17:45 +00:00
|
|
|
sync IsSecureURI(uint32_t type, URIParams uri, uint32_t flags)
|
|
|
|
returns (bool isSecureURI);
|
|
|
|
|
Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb, r=mayhemer, r=jld, r=smaug, r=dkeeler, r=jmaher, p=ally
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.
Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.
nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.
MozReview-Commit-ID: ES1JruCtDdX
--HG--
extra : rebase_source : 2ac6c93c49f2862fc0b9e595eb0598cd1ea4bedf
2016-09-27 15:27:00 +00:00
|
|
|
async AccumulateMixedContentHSTS(URIParams uri, bool active, bool hasHSTSPriming);
|
2015-09-09 19:14:27 +00:00
|
|
|
|
2016-09-30 23:20:50 +00:00
|
|
|
nested(inside_cpow) async PHal();
|
2011-10-05 22:15:45 +00:00
|
|
|
|
2015-09-22 19:09:42 +00:00
|
|
|
async PHeapSnapshotTempFileHelper();
|
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PNecko();
|
2011-11-20 22:40:53 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PPrinting();
|
2014-10-28 15:59:08 +00:00
|
|
|
|
2016-05-15 17:32:09 +00:00
|
|
|
async PSendStream();
|
|
|
|
|
2016-09-30 23:20:50 +00:00
|
|
|
nested(inside_sync) sync PScreenManager()
|
2014-07-14 17:22:26 +00:00
|
|
|
returns (uint32_t numberOfScreens,
|
|
|
|
float systemDefaultScale,
|
|
|
|
bool success);
|
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PSpeechSynthesis();
|
2013-04-10 12:18:38 +00:00
|
|
|
|
2016-09-30 23:20:50 +00:00
|
|
|
nested(inside_cpow) async PStorage();
|
2011-10-05 22:15:45 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PMedia();
|
2015-06-18 15:46:36 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PWebrtcGlobal();
|
2015-09-09 19:14:27 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PPresentation();
|
2015-04-21 22:29:18 +00:00
|
|
|
|
2016-06-07 09:46:03 +00:00
|
|
|
async PFlyWebPublishedServer(nsString name, FlyWebPublishOptions params);
|
|
|
|
|
2016-11-18 21:54:57 +00:00
|
|
|
sync PURLClassifier(Principal principal, bool useTrackingProtection)
|
|
|
|
returns (bool success);
|
2016-11-18 21:43:28 +00:00
|
|
|
sync ClassifyLocal(URIParams uri, nsCString tables)
|
2016-11-30 18:57:48 +00:00
|
|
|
returns (nsresult rv, nsCString[] results);
|
2016-11-18 21:54:57 +00:00
|
|
|
|
2010-07-15 14:04:25 +00:00
|
|
|
// Services remoting
|
|
|
|
|
2012-08-23 19:33:46 +00:00
|
|
|
async StartVisitedQuery(URIParams uri);
|
|
|
|
async VisitURI(URIParams uri, OptionalURIParams referrer, uint32_t flags);
|
|
|
|
async SetURITitle(URIParams uri, nsString title);
|
2010-07-02 15:50:41 +00:00
|
|
|
|
2015-12-03 23:04:28 +00:00
|
|
|
async LoadURIExternal(URIParams uri, PBrowser windowContext);
|
2016-07-01 03:16:00 +00:00
|
|
|
async ExtProtocolChannelConnectParent(uint32_t registrarId);
|
2010-08-10 17:14:45 +00:00
|
|
|
|
2010-10-19 20:35:08 +00:00
|
|
|
// PrefService message
|
2016-08-04 18:33:42 +00:00
|
|
|
sync GetGfxVars() returns (GfxVarUpdate[] vars);
|
2010-07-15 14:04:25 +00:00
|
|
|
|
2011-01-13 04:04:42 +00:00
|
|
|
sync ReadFontList() returns (FontListEntry[] retValue);
|
|
|
|
|
2015-10-30 19:30:00 +00:00
|
|
|
sync ReadDataStorageArray(nsString aFilename)
|
|
|
|
returns (DataStorageItem[] retValue);
|
|
|
|
|
2013-11-06 17:21:15 +00:00
|
|
|
sync SyncMessage(nsString aMessage, ClonedMessageData aData,
|
|
|
|
CpowEntry[] aCpows, Principal aPrincipal)
|
2015-09-10 20:50:58 +00:00
|
|
|
returns (StructuredCloneData[] retval);
|
2010-08-31 18:58:35 +00:00
|
|
|
|
2016-09-30 23:20:50 +00:00
|
|
|
nested(inside_sync) sync RpcMessage(nsString aMessage, ClonedMessageData aData,
|
|
|
|
CpowEntry[] aCpows, Principal aPrincipal)
|
2015-09-10 20:50:58 +00:00
|
|
|
returns (StructuredCloneData[] retval);
|
2013-10-01 16:15:06 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async ShowAlert(AlertNotificationType alert);
|
2013-03-18 13:24:53 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async CloseAlert(nsString name, Principal principal);
|
2010-09-15 16:44:57 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async DisableNotifications(Principal principal);
|
2015-10-22 21:10:14 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async OpenNotificationSettings(Principal principal);
|
2015-10-22 21:20:51 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PPSMContentDownloader(uint32_t aCertType);
|
2015-04-22 19:55:23 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PExternalHelperApp(OptionalURIParams uri,
|
|
|
|
nsCString aMimeContentType,
|
|
|
|
nsCString aContentDisposition,
|
|
|
|
uint32_t aContentDispositionHint,
|
|
|
|
nsString aContentDispositionFilename,
|
|
|
|
bool aForceSave,
|
|
|
|
int64_t aContentLength,
|
2017-01-11 01:49:16 +00:00
|
|
|
bool aWasFileChannel,
|
2016-01-26 21:51:53 +00:00
|
|
|
OptionalURIParams aReferrer,
|
|
|
|
nullable PBrowser aBrowser);
|
2012-08-23 19:33:46 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PHandlerService();
|
2015-08-25 23:42:21 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async AddGeolocationListener(Principal principal, bool highAccuracy);
|
|
|
|
async RemoveGeolocationListener();
|
|
|
|
async SetGeolocationHigherAccuracy(bool enable);
|
2010-09-15 22:55:08 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async ConsoleMessage(nsString message);
|
|
|
|
async ScriptError(nsString message, nsString sourceName, nsString sourceLine,
|
|
|
|
uint32_t lineNumber, uint32_t colNumber, uint32_t flags,
|
|
|
|
nsCString category);
|
2010-09-24 01:39:32 +00:00
|
|
|
|
2010-10-09 18:07:38 +00:00
|
|
|
// nsIPermissionManager messages
|
|
|
|
sync ReadPermissions() returns (Permission[] permissions);
|
|
|
|
|
2015-04-16 19:38:12 +00:00
|
|
|
// Places the items within dataTransfer on the clipboard.
|
2016-01-26 21:51:53 +00:00
|
|
|
async SetClipboard(IPCDataTransfer aDataTransfer,
|
|
|
|
bool aIsPrivateData,
|
2016-06-30 07:12:56 +00:00
|
|
|
Principal aRequestingPrincipal,
|
2016-01-26 21:51:53 +00:00
|
|
|
int32_t aWhichClipboard);
|
2015-04-16 19:38:12 +00:00
|
|
|
|
|
|
|
// Given a list of supported types, returns the clipboard data for the
|
|
|
|
// first type that matches.
|
|
|
|
sync GetClipboard(nsCString[] aTypes, int32_t aWhichClipboard)
|
|
|
|
returns (IPCDataTransfer dataTransfer);
|
|
|
|
|
|
|
|
// Clears the clipboard.
|
2016-01-26 21:51:53 +00:00
|
|
|
async EmptyClipboard(int32_t aWhichClipboard);
|
2015-04-16 19:38:12 +00:00
|
|
|
|
|
|
|
// Returns true if data of one of the specified types is on the clipboard.
|
|
|
|
sync ClipboardHasType(nsCString[] aTypes, int32_t aWhichClipboard)
|
|
|
|
returns (bool hasType);
|
2011-03-01 05:36:43 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
sync GetSystemColors(uint32_t colorsCount)
|
|
|
|
returns (uint32_t[] colors);
|
2011-03-30 18:04:41 +00:00
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
sync GetIconForExtension(nsCString aFileExt, uint32_t aIconSize)
|
|
|
|
returns (uint8_t[] bits);
|
2011-06-13 21:02:13 +00:00
|
|
|
|
2011-07-27 01:14:52 +00:00
|
|
|
sync GetShowPasswordSetting()
|
2011-09-29 06:19:26 +00:00
|
|
|
returns (bool showPassword);
|
2011-07-27 01:14:52 +00:00
|
|
|
|
2012-04-20 00:13:20 +00:00
|
|
|
// Notify the parent of the presence or absence of private docshells
|
2016-01-26 21:51:53 +00:00
|
|
|
async PrivateDocShellsExist(bool aExist);
|
2012-04-20 00:13:20 +00:00
|
|
|
|
2017-02-01 12:34:24 +00:00
|
|
|
// Tell the parent that the child has gone idle for the first time.
|
|
|
|
async FirstIdle();
|
|
|
|
|
2015-07-10 16:38:46 +00:00
|
|
|
async AudioChannelServiceStatus(bool aActiveTelephonyChannel,
|
|
|
|
bool aContentOrNormalChannel,
|
|
|
|
bool aAnyActiveChannel);
|
|
|
|
|
2014-04-10 17:39:20 +00:00
|
|
|
async AudioChannelChangeDefVolChannel(int32_t aChannel, bool aHidden);
|
2012-12-06 03:01:58 +00:00
|
|
|
|
2013-01-09 15:03:28 +00:00
|
|
|
async FilePathUpdateNotify(nsString aType,
|
2013-05-11 09:10:18 +00:00
|
|
|
nsString aStorageName,
|
2013-01-09 15:03:28 +00:00
|
|
|
nsString aFilepath,
|
|
|
|
nsCString aReason);
|
2014-09-15 18:51:25 +00:00
|
|
|
|
2013-08-16 17:59:31 +00:00
|
|
|
sync KeywordToURI(nsCString keyword)
|
2014-09-11 13:50:55 +00:00
|
|
|
returns (nsString providerName, OptionalInputStreamParams postData, OptionalURIParams uri);
|
|
|
|
|
|
|
|
sync NotifyKeywordSearchLoading(nsString providerName, nsString keyword);
|
2013-08-16 17:59:31 +00:00
|
|
|
|
2015-11-24 21:31:57 +00:00
|
|
|
async CopyFavicon(URIParams oldURI, URIParams newURI, Principal aLoadingPrincipal, bool isPrivate);
|
2015-04-29 08:57:24 +00:00
|
|
|
|
2014-06-11 05:44:39 +00:00
|
|
|
// Tell the compositor to allocate a layer tree id for nested remote mozbrowsers.
|
2016-01-08 19:17:39 +00:00
|
|
|
sync AllocateLayerTreeId(ContentParentId cpId, TabId tabId)
|
2014-06-11 05:44:39 +00:00
|
|
|
returns (uint64_t id);
|
|
|
|
async DeallocateLayerTreeId(uint64_t id);
|
|
|
|
|
2013-11-24 09:06:27 +00:00
|
|
|
/**
|
|
|
|
* Notifies the parent about a recording device is starting or shutdown.
|
|
|
|
* @param recordingStatus starting or shutdown
|
|
|
|
* @param pageURL URL that request that changing the recording status
|
|
|
|
* @param isAudio recording start with microphone
|
|
|
|
* @param isVideo recording start with camera
|
|
|
|
*/
|
|
|
|
async RecordingDeviceEvents(nsString recordingStatus,
|
|
|
|
nsString pageURL,
|
|
|
|
bool isAudio,
|
|
|
|
bool isVideo);
|
|
|
|
|
2017-01-17 04:05:46 +00:00
|
|
|
sync GetGfxInfoFeatureStatus() returns (GfxInfoFeatureStatus[] features);
|
2014-01-11 01:09:20 +00:00
|
|
|
|
2016-02-16 23:07:37 +00:00
|
|
|
// Graphics errors
|
|
|
|
async GraphicsError(nsCString aError);
|
|
|
|
|
2015-08-12 03:22:20 +00:00
|
|
|
// Driver crash guards. aGuardType must be a member of CrashGuardType.
|
|
|
|
sync BeginDriverCrashGuard(uint32_t aGuardType) returns (bool crashDetected);
|
|
|
|
sync EndDriverCrashGuard(uint32_t aGuardType);
|
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async AddIdleObserver(uint64_t observerId, uint32_t idleTimeInS);
|
|
|
|
async RemoveIdleObserver(uint64_t observerId, uint32_t idleTimeInS);
|
2014-02-05 16:37:26 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This message is only used on X11 platforms.
|
|
|
|
*
|
|
|
|
* Send a dup of the plugin process's X socket to the parent
|
|
|
|
* process. In theory, this scheme keeps the plugin's X resources
|
|
|
|
* around until after both the plugin process shuts down *and* the
|
|
|
|
* parent process closes the dup fd. This is used to prevent the
|
|
|
|
* parent process from crashing on X errors if, e.g., the plugin
|
|
|
|
* crashes *just before* a repaint and the parent process tries to
|
|
|
|
* use the newly-invalid surface.
|
|
|
|
*/
|
2016-01-26 21:51:53 +00:00
|
|
|
async BackUpXResources(FileDescriptor aXSocketFd);
|
2014-02-05 16:37:26 +00:00
|
|
|
|
2015-03-10 09:32:00 +00:00
|
|
|
sync OpenAnonymousTemporaryFile() returns (FileDescOrError aFD);
|
2014-06-24 17:11:36 +00:00
|
|
|
|
2014-11-26 22:28:28 +00:00
|
|
|
/**
|
|
|
|
* Keygen requires us to call it after a <keygen> element is parsed and
|
|
|
|
* before one is submitted. This is urgent because an extension might use
|
|
|
|
* a CPOW to synchronously submit a keygen element.
|
|
|
|
*/
|
2016-09-30 23:20:50 +00:00
|
|
|
nested(inside_cpow) sync KeygenProcessValue(nsString oldValue,
|
|
|
|
nsString challenge,
|
|
|
|
nsString keytype,
|
|
|
|
nsString keyparams)
|
2014-11-26 22:28:28 +00:00
|
|
|
returns (nsString newValue);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called to provide the options for <keygen> elements.
|
|
|
|
*/
|
2014-12-19 17:07:04 +00:00
|
|
|
sync KeygenProvideContent()
|
|
|
|
returns (nsString aAttribute, nsString[] aContent);
|
2014-11-26 22:28:28 +00:00
|
|
|
|
2014-10-29 18:11:00 +00:00
|
|
|
/**
|
|
|
|
* Tell the chrome process there is an creation of PBrowser.
|
|
|
|
* return a system-wise unique Id.
|
|
|
|
*/
|
|
|
|
sync AllocateTabId(TabId openerTabId, IPCTabContext context, ContentParentId cpId)
|
|
|
|
returns (TabId tabId);
|
2015-08-28 07:18:00 +00:00
|
|
|
async DeallocateTabId(TabId tabId,
|
|
|
|
ContentParentId cpId,
|
|
|
|
bool aMarkedDestroying);
|
2014-10-29 18:11:00 +00:00
|
|
|
|
2015-08-28 07:18:00 +00:00
|
|
|
/**
|
|
|
|
* Tell the chrome process there is a destruction of PBrowser(Tab)
|
|
|
|
*/
|
|
|
|
async NotifyTabDestroying(TabId tabId,
|
|
|
|
ContentParentId cpId);
|
2014-11-13 00:31:00 +00:00
|
|
|
/**
|
|
|
|
* Starts an offline application cache update.
|
|
|
|
* @param manifestURI
|
|
|
|
* URI of the manifest to fetch, the application cache group ID
|
|
|
|
* @param documentURI
|
|
|
|
* URI of the document that referred the manifest
|
2015-10-02 16:13:52 +00:00
|
|
|
* @param loadingPrincipal
|
|
|
|
* Principal of the document that referred the manifest
|
2014-11-13 00:31:00 +00:00
|
|
|
* @param stickDocument
|
|
|
|
* True if the update was initiated by a document load that referred
|
|
|
|
* a manifest.
|
|
|
|
* False if the update was initiated by applicationCache.update() call.
|
|
|
|
*
|
|
|
|
* Tells the update to carry the documentURI to a potential separate
|
|
|
|
* update of implicit (master) items.
|
|
|
|
*
|
|
|
|
* Why this argument? If the document was not found in an offline cache
|
|
|
|
* before load and refers a manifest and this manifest itself has not
|
|
|
|
* been changed since the last fetch, we will not do the application
|
|
|
|
* cache group update. But we must cache the document (identified by the
|
|
|
|
* documentURI). This argument will ensure that a previously uncached
|
|
|
|
* document will get cached and that we don't re-cache a document that
|
|
|
|
* has already been cached (stickDocument=false).
|
|
|
|
* @param tabId
|
|
|
|
* To identify which tab owns the app.
|
|
|
|
*/
|
2016-01-26 21:51:53 +00:00
|
|
|
async POfflineCacheUpdate(URIParams manifestURI, URIParams documentURI,
|
|
|
|
PrincipalInfo loadingPrincipal, bool stickDocument);
|
2014-11-13 00:31:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets "offline-app" permission for the principal. Called when we hit
|
|
|
|
* a web app with the manifest attribute in <html> and
|
|
|
|
* offline-apps.allow_by_default is set to true.
|
|
|
|
*/
|
2016-01-26 21:51:53 +00:00
|
|
|
async SetOfflinePermission(Principal principal);
|
2014-11-13 00:31:00 +00:00
|
|
|
|
2015-01-10 18:18:59 +00:00
|
|
|
/**
|
|
|
|
* Notifies the parent to continue shutting down after the child performs
|
|
|
|
* its shutdown tasks.
|
|
|
|
*/
|
|
|
|
async FinishShutdown();
|
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async UpdateDropEffect(uint32_t aDragAction, uint32_t aDropEffect);
|
2015-04-14 01:08:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Initiates an asynchronous request for permission for the
|
|
|
|
* provided principal.
|
|
|
|
*
|
|
|
|
* @param aRequests
|
|
|
|
* The array of permissions to request.
|
|
|
|
* @param aPrincipal
|
|
|
|
* The principal of the request.
|
|
|
|
* @param tabId
|
|
|
|
* To identify which tab issues this request.
|
|
|
|
*
|
|
|
|
* NOTE: The principal is untrusted in the parent process. Only
|
|
|
|
* principals that can live in the content process should
|
|
|
|
* provided.
|
|
|
|
*/
|
2016-01-26 21:51:53 +00:00
|
|
|
async PContentPermissionRequest(PermissionRequest[] aRequests, Principal aPrincipal,
|
|
|
|
TabId tabId);
|
2015-04-14 01:08:00 +00:00
|
|
|
|
2015-06-10 21:58:30 +00:00
|
|
|
async Profile(nsCString aProfile);
|
|
|
|
|
2015-08-02 20:59:33 +00:00
|
|
|
/**
|
|
|
|
* Request graphics initialization information from the parent.
|
|
|
|
*/
|
|
|
|
sync GetGraphicsDeviceInitData()
|
2016-08-21 03:59:11 +00:00
|
|
|
returns (ContentDeviceData aData);
|
2015-08-02 20:59:33 +00:00
|
|
|
|
2015-10-29 23:30:57 +00:00
|
|
|
sync CreateWindow(nullable PBrowser aThisTab,
|
2015-10-29 23:30:57 +00:00
|
|
|
PBrowser aNewTab,
|
2016-03-29 18:32:41 +00:00
|
|
|
PRenderFrame aRenderFrame,
|
2015-10-29 23:30:57 +00:00
|
|
|
uint32_t aChromeFlags,
|
|
|
|
bool aCalledFromJS,
|
|
|
|
bool aPositionSpecified,
|
|
|
|
bool aSizeSpecified,
|
|
|
|
nsCString aFeatures,
|
2016-02-18 08:33:07 +00:00
|
|
|
nsCString aBaseURI,
|
2017-01-12 16:38:48 +00:00
|
|
|
OriginAttributes aOpenerOriginAttributes,
|
2016-03-21 17:55:55 +00:00
|
|
|
float aFullZoom)
|
2015-10-29 23:30:57 +00:00
|
|
|
returns (nsresult rv,
|
|
|
|
bool windowOpened,
|
|
|
|
FrameScriptInfo[] frameScripts,
|
2016-03-29 18:32:41 +00:00
|
|
|
nsCString urlToLoad,
|
|
|
|
TextureFactoryIdentifier textureFactoryIdentifier,
|
|
|
|
uint64_t layersId);
|
2015-10-29 23:30:57 +00:00
|
|
|
|
2016-11-24 15:08:31 +00:00
|
|
|
async CreateWindowInDifferentProcess(
|
|
|
|
PBrowser aThisTab,
|
|
|
|
uint32_t aChromeFlags,
|
|
|
|
bool aCalledFromJS,
|
|
|
|
bool aPositionSpecified,
|
|
|
|
bool aSizeSpecified,
|
|
|
|
URIParams aURIToLoad,
|
|
|
|
nsCString aFeatures,
|
|
|
|
nsCString aBaseURI,
|
2017-01-12 16:38:48 +00:00
|
|
|
OriginAttributes aOpenerOriginAttributes,
|
2016-11-24 15:08:31 +00:00
|
|
|
float aFullZoom);
|
|
|
|
|
2015-09-15 18:01:07 +00:00
|
|
|
sync GetDeviceStorageLocation(nsString type)
|
|
|
|
returns (nsString path);
|
|
|
|
|
2015-12-19 01:17:46 +00:00
|
|
|
sync GetDeviceStorageLocations()
|
|
|
|
returns (DeviceStorageLocationInfo info);
|
|
|
|
|
2015-11-04 19:08:14 +00:00
|
|
|
sync GetAndroidSystemInfo()
|
|
|
|
returns (AndroidSystemInfo info);
|
|
|
|
|
2015-11-04 21:46:10 +00:00
|
|
|
/**
|
|
|
|
* Tells the parent to ungrab the pointer on the default display.
|
|
|
|
*
|
|
|
|
* This is for GTK platforms where we have to ensure the pointer ungrab happens in the
|
|
|
|
* chrome process as that's the process that receives the pointer event.
|
|
|
|
*/
|
|
|
|
sync UngrabPointer(uint32_t time);
|
2016-03-02 21:09:48 +00:00
|
|
|
|
|
|
|
sync RemovePermission(Principal principal, nsCString permissionType) returns (nsresult rv);
|
2016-03-17 06:18:35 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Tell the parent that a decoder's' benchmark has been completed.
|
|
|
|
* The result can then be stored in permanent storage.
|
|
|
|
*/
|
|
|
|
async NotifyBenchmarkResult(nsString aCodecName, uint32_t aDecodeFPS);
|
|
|
|
|
2016-04-21 18:11:03 +00:00
|
|
|
/**
|
|
|
|
* Notify `push-message` observers without data in the parent.
|
|
|
|
*/
|
2016-05-02 16:38:47 +00:00
|
|
|
async NotifyPushObservers(nsCString scope, Principal principal,
|
|
|
|
nsString messageId);
|
2016-04-21 18:11:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify `push-message` observers with data in the parent.
|
|
|
|
*/
|
2016-05-02 16:38:47 +00:00
|
|
|
async NotifyPushObserversWithData(nsCString scope, Principal principal,
|
|
|
|
nsString messageId, uint8_t[] data);
|
2016-04-21 18:11:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify `push-subscription-change` observers in the parent.
|
|
|
|
*/
|
2016-05-02 16:38:47 +00:00
|
|
|
async NotifyPushSubscriptionChangeObservers(nsCString scope,
|
|
|
|
Principal principal);
|
2016-04-21 18:11:03 +00:00
|
|
|
|
2016-06-21 18:45:25 +00:00
|
|
|
/**
|
|
|
|
* Tell the parent process that the child process is low on memory. This
|
|
|
|
* allows the parent process to save a memory report that can potentially be
|
|
|
|
* sent with a crash report from the content process.
|
|
|
|
*/
|
|
|
|
async NotifyLowMemory();
|
|
|
|
|
2016-07-14 07:04:21 +00:00
|
|
|
async GetFilesRequest(nsID aID, nsString aDirectory, bool aRecursiveFlag);
|
|
|
|
async DeleteGetFilesRequest(nsID aID);
|
|
|
|
|
2017-02-08 09:19:01 +00:00
|
|
|
async FileCreationRequest(nsID aID, nsString aFullPath, nsString aType,
|
|
|
|
nsString aName, bool lastModifiedPassed,
|
|
|
|
int64_t lastModified, bool aIsFromNsIFile);
|
|
|
|
|
2016-07-17 14:50:50 +00:00
|
|
|
async StoreAndBroadcastBlobURLRegistration(nsCString url, PBlob blob,
|
|
|
|
Principal principal);
|
|
|
|
|
|
|
|
async UnstoreAndBroadcastBlobURLUnregistration(nsCString url);
|
|
|
|
|
2016-06-22 14:16:40 +00:00
|
|
|
/**
|
|
|
|
* Messages for communicating child Telemetry to the parent process
|
|
|
|
*/
|
|
|
|
async AccumulateChildHistogram(Accumulation[] accumulations);
|
|
|
|
async AccumulateChildKeyedHistogram(KeyedAccumulation[] accumulations);
|
2017-01-16 04:12:00 +00:00
|
|
|
async UpdateChildScalars(ScalarAction[] updates);
|
|
|
|
async UpdateChildKeyedScalars(KeyedScalarAction[] updates);
|
2016-06-22 14:16:40 +00:00
|
|
|
|
2016-10-27 18:40:50 +00:00
|
|
|
sync GetA11yContentId() returns (uint32_t aContentId);
|
|
|
|
|
2017-01-27 00:35:54 +00:00
|
|
|
async AddMemoryReport(MemoryReport aReport);
|
|
|
|
async FinishMemoryReport(uint32_t aGeneration);
|
|
|
|
|
2016-05-14 23:54:51 +00:00
|
|
|
both:
|
|
|
|
async AsyncMessage(nsString aMessage, CpowEntry[] aCpows,
|
|
|
|
Principal aPrincipal, ClonedMessageData aData);
|
|
|
|
|
2016-04-21 19:04:15 +00:00
|
|
|
/**
|
2016-05-14 23:54:51 +00:00
|
|
|
* Notify `push-subscription-modified` observers in the parent and child.
|
2016-04-21 19:04:15 +00:00
|
|
|
*/
|
2016-05-02 15:20:14 +00:00
|
|
|
async NotifyPushSubscriptionModifiedObservers(nsCString scope,
|
|
|
|
Principal principal);
|
2009-07-11 06:33:10 +00:00
|
|
|
};
|
|
|
|
|
2009-09-09 22:00:14 +00:00
|
|
|
}
|
2012-08-29 12:24:48 +00:00
|
|
|
}
|