2009-09-09 15:00:14 -07:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8 -*- */
|
2009-08-18 12:05:15 -07:00
|
|
|
/* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
|
2012-05-21 04:12:37 -07: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-10 23:33:10 -07:00
|
|
|
|
2013-11-26 23:59:41 -08:00
|
|
|
include protocol PBackground;
|
2012-08-01 23:02:29 -07:00
|
|
|
include protocol PBlob;
|
2012-09-13 09:37:14 -07:00
|
|
|
include protocol PBluetooth;
|
2010-07-19 11:33:33 -07:00
|
|
|
include protocol PBrowser;
|
2014-08-18 02:06:11 -07:00
|
|
|
include protocol PCellBroadcast;
|
2012-07-17 16:59:45 -07:00
|
|
|
include protocol PCompositor;
|
2014-06-10 22:44:13 -07:00
|
|
|
include protocol PContentBridge;
|
2015-04-13 18:08:00 -07:00
|
|
|
include protocol PContentPermissionRequest;
|
2014-05-13 10:13:00 -07:00
|
|
|
include protocol PCycleCollectWithLogs;
|
2010-11-24 06:15:03 -08:00
|
|
|
include protocol PCrashReporter;
|
2015-04-22 12:55:23 -07:00
|
|
|
include protocol PPSMContentDownloader;
|
2010-09-15 15:55:08 -07:00
|
|
|
include protocol PExternalHelperApp;
|
2012-06-19 16:14:39 -07:00
|
|
|
include protocol PDeviceStorageRequest;
|
2014-03-25 11:37:13 -07:00
|
|
|
include protocol PFileDescriptorSet;
|
2013-09-03 15:28:06 -07:00
|
|
|
include protocol PFMRadio;
|
2014-03-04 19:25:40 -08:00
|
|
|
include protocol PFileSystemRequest;
|
2011-10-05 15:15:45 -07:00
|
|
|
include protocol PHal;
|
2015-09-22 12:09:42 -07:00
|
|
|
include protocol PHeapSnapshotTempFileHelper;
|
2015-01-06 22:53:21 -08:00
|
|
|
include protocol PIcc;
|
2015-01-16 18:34:47 -08:00
|
|
|
include protocol PProcessHangMonitor;
|
2012-08-29 05:24:48 -07:00
|
|
|
include protocol PImageBridge;
|
2015-06-18 08:46:36 -07:00
|
|
|
include protocol PMedia;
|
2011-02-16 10:43:23 -08:00
|
|
|
include protocol PMemoryReportRequest;
|
2014-07-01 03:09:08 -07:00
|
|
|
include protocol PMobileConnection;
|
2011-10-05 15:15:45 -07:00
|
|
|
include protocol PNecko;
|
2015-02-10 02:49:03 -08:00
|
|
|
// FIXME This is pretty ridiculous, but we have to keep the order of the
|
|
|
|
// following 4 includes, or the parser is confused about PGMPContent
|
|
|
|
// bridging PContent and PGMP. As soon as it registers the bridge between
|
|
|
|
// PContent and PPluginModule it seems to think that PContent's parent and
|
|
|
|
// child live in the same process!
|
|
|
|
include protocol PGMPContent;
|
|
|
|
include protocol PGMPService;
|
2014-10-29 08:05:36 -07:00
|
|
|
include protocol PPluginModule;
|
2015-02-10 02:49:03 -08:00
|
|
|
include protocol PGMP;
|
2014-10-28 08:59:08 -07:00
|
|
|
include protocol PPrinting;
|
2014-11-12 16:31:00 -08:00
|
|
|
include protocol POfflineCacheUpdate;
|
2014-07-14 10:22:26 -07:00
|
|
|
include protocol PScreenManager;
|
2014-04-30 18:52:00 -07:00
|
|
|
include protocol PSharedBufferManager;
|
2011-11-20 14:40:53 -08:00
|
|
|
include protocol PSms;
|
2013-04-03 15:13:17 -07:00
|
|
|
include protocol PSpeechSynthesis;
|
2011-10-05 15:15:45 -07:00
|
|
|
include protocol PStorage;
|
2013-09-06 23:19:50 -07:00
|
|
|
include protocol PTelephony;
|
2011-10-05 15:15:45 -07:00
|
|
|
include protocol PTestShell;
|
2014-09-25 22:00:24 -07:00
|
|
|
include protocol PVoicemail;
|
2013-07-03 00:24:32 -07:00
|
|
|
include protocol PJavaScript;
|
2014-07-01 15:24:27 -07:00
|
|
|
include protocol PRemoteSpellcheckEngine;
|
2015-09-21 05:54:00 -07:00
|
|
|
include protocol PWebBrowserPersistDocument;
|
2015-04-21 15:29:18 -07:00
|
|
|
include protocol PWebrtcGlobal;
|
2015-03-25 20:16:21 -07:00
|
|
|
include protocol PPresentation;
|
2012-08-23 12:33:46 -07:00
|
|
|
include DOMTypes;
|
2013-07-10 15:05:39 -07:00
|
|
|
include JavaScriptTypes;
|
2013-01-17 12:17:33 -08:00
|
|
|
include InputStreamParams;
|
2013-07-10 10:07:50 -07:00
|
|
|
include PTabContext;
|
2012-08-23 12:33:46 -07:00
|
|
|
include URIParams;
|
2014-10-29 08:05:36 -07:00
|
|
|
include PluginTypes;
|
2013-06-03 03:14:40 -07:00
|
|
|
include ProtocolTypes;
|
2015-10-02 09:13:52 -07:00
|
|
|
include PBackgroundSharedTypes;
|
2015-04-13 18:08:00 -07:00
|
|
|
include PContentPermission;
|
2015-04-23 16:41:00 -07:00
|
|
|
include BrowserConfiguration;
|
2015-08-02 13:59:33 -07:00
|
|
|
include GraphicsMessages;
|
2009-09-09 15:00:14 -07:00
|
|
|
|
2014-08-18 02:06:11 -07: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";
|
|
|
|
|
2014-09-26 16:21:57 -07:00
|
|
|
include "mozilla/dom/indexedDB/SerializationHelpers.h";
|
|
|
|
|
2013-10-01 12:25:07 -07:00
|
|
|
using GeoPosition from "nsGeoPositionIPCSerialiser.h";
|
2010-09-20 21:16:37 -07:00
|
|
|
|
2013-10-01 12:25:07 -07:00
|
|
|
using struct ChromePackage from "mozilla/chrome/RegistryMessageUtils.h";
|
2015-07-16 15:50:07 -07:00
|
|
|
using struct SubstitutionMapping from "mozilla/chrome/RegistryMessageUtils.h";
|
2013-10-01 12:25:07 -07:00
|
|
|
using struct OverrideMapping from "mozilla/chrome/RegistryMessageUtils.h";
|
|
|
|
using base::ChildPrivileges from "base/process_util.h";
|
2014-12-29 15:13:54 -08:00
|
|
|
using base::ProcessId from "base/process.h";
|
2013-10-01 12:25:07 -07: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 struct mozilla::void_t from "ipc/IPCMessageUtils.h";
|
|
|
|
using mozilla::dom::NativeThreadId from "mozilla/dom/TabMessageUtils.h";
|
2014-09-26 16:21:57 -07:00
|
|
|
using mozilla::dom::quota::PersistenceType from "mozilla/dom/quota/PersistenceType.h";
|
2013-10-01 12:25:07 -07:00
|
|
|
using mozilla::hal::ProcessPriority from "mozilla/HalTypes.h";
|
2015-09-23 11:49:05 -07:00
|
|
|
using mozilla::gfx::IntSize from "mozilla/gfx/2D.h";
|
2014-10-29 11:11:00 -07:00
|
|
|
using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h";
|
2014-10-23 17:28:00 -07:00
|
|
|
using mozilla::dom::ContentParentId from "mozilla/dom/ipc/IdType.h";
|
2015-04-22 07:58:15 -07:00
|
|
|
using struct LookAndFeelInt from "mozilla/widget/WidgetMessageUtils.h";
|
2015-09-10 13:50:58 -07:00
|
|
|
using class mozilla::dom::ipc::StructuredCloneData from "ipc/IPCMessageUtils.h";
|
2009-09-09 15:00:14 -07:00
|
|
|
|
2014-07-25 13:17:36 -07:00
|
|
|
union ChromeRegistryItem
|
|
|
|
{
|
|
|
|
ChromePackage;
|
|
|
|
OverrideMapping;
|
2015-07-16 15:50:07 -07:00
|
|
|
SubstitutionMapping;
|
2014-07-25 13:17:36 -07:00
|
|
|
};
|
|
|
|
|
2009-07-10 23:33:10 -07:00
|
|
|
namespace mozilla {
|
2009-09-09 15:00:14 -07:00
|
|
|
namespace dom {
|
2009-07-10 23:33:10 -07:00
|
|
|
|
2011-01-12 20:04:42 -08:00
|
|
|
struct FontListEntry {
|
2011-09-23 04:15:36 -07:00
|
|
|
nsString familyName;
|
|
|
|
nsString faceName;
|
2011-01-12 20:04:42 -08:00
|
|
|
nsCString filepath;
|
2012-08-22 08:56:38 -07:00
|
|
|
uint16_t weight;
|
|
|
|
int16_t stretch;
|
|
|
|
uint8_t italic;
|
|
|
|
uint8_t index;
|
2014-06-30 11:05:29 -07:00
|
|
|
bool isHidden;
|
2011-01-12 20:04:42 -08:00
|
|
|
};
|
|
|
|
|
2013-01-25 11:05:24 -08:00
|
|
|
struct DeviceStorageFreeSpaceParams
|
2012-07-31 12:28:23 -07:00
|
|
|
{
|
2012-08-30 15:17:37 -07:00
|
|
|
nsString type;
|
2013-05-11 02:10:18 -07:00
|
|
|
nsString storageName;
|
2012-07-31 12:28:23 -07:00
|
|
|
};
|
|
|
|
|
2013-01-25 11:05:24 -08:00
|
|
|
struct DeviceStorageUsedSpaceParams
|
|
|
|
{
|
|
|
|
nsString type;
|
2013-05-11 02:10:18 -07:00
|
|
|
nsString storageName;
|
2013-01-25 11:05:24 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DeviceStorageAvailableParams
|
|
|
|
{
|
|
|
|
nsString type;
|
2013-05-11 02:10:18 -07:00
|
|
|
nsString storageName;
|
2013-01-25 11:05:24 -08:00
|
|
|
};
|
|
|
|
|
2014-02-18 18:48:05 -08:00
|
|
|
struct DeviceStorageStatusParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
};
|
|
|
|
|
2013-09-05 23:11:58 -07:00
|
|
|
struct DeviceStorageFormatParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
};
|
|
|
|
|
2014-03-04 03:24:19 -08:00
|
|
|
struct DeviceStorageMountParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct DeviceStorageUnmountParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
};
|
|
|
|
|
2012-06-19 16:14:39 -07:00
|
|
|
struct DeviceStorageAddParams
|
|
|
|
{
|
2012-08-30 15:17:37 -07:00
|
|
|
nsString type;
|
2013-05-11 02:10:18 -07:00
|
|
|
nsString storageName;
|
2013-04-18 07:13:23 -07:00
|
|
|
nsString relpath;
|
2012-08-09 15:41:18 -07:00
|
|
|
PBlob blob;
|
2012-06-19 16:14:39 -07:00
|
|
|
};
|
|
|
|
|
2014-06-10 01:51:28 -07:00
|
|
|
struct DeviceStorageAppendParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
nsString relpath;
|
|
|
|
PBlob blob;
|
|
|
|
};
|
|
|
|
|
2014-01-16 17:01:27 -08:00
|
|
|
struct DeviceStorageCreateFdParams
|
|
|
|
{
|
|
|
|
nsString type;
|
|
|
|
nsString storageName;
|
|
|
|
nsString relpath;
|
|
|
|
};
|
|
|
|
|
2012-06-19 16:14:39 -07:00
|
|
|
struct DeviceStorageGetParams
|
|
|
|
{
|
2012-08-30 15:17:37 -07:00
|
|
|
nsString type;
|
2013-05-11 02:10:18 -07:00
|
|
|
nsString storageName;
|
2013-04-18 07:13:23 -07:00
|
|
|
nsString rootDir;
|
|
|
|
nsString relpath;
|
2012-06-19 16:14:39 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DeviceStorageDeleteParams
|
|
|
|
{
|
2012-08-30 15:17:37 -07:00
|
|
|
nsString type;
|
2013-05-11 02:10:18 -07:00
|
|
|
nsString storageName;
|
2013-04-18 07:13:23 -07:00
|
|
|
nsString relpath;
|
2012-06-19 16:14:39 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DeviceStorageEnumerationParams
|
|
|
|
{
|
2012-08-30 15:17:37 -07:00
|
|
|
nsString type;
|
2013-05-11 02:10:18 -07:00
|
|
|
nsString storageName;
|
|
|
|
nsString rootdir;
|
2012-08-22 08:56:38 -07:00
|
|
|
uint64_t since;
|
2012-06-19 16:14:39 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
union DeviceStorageParams
|
|
|
|
{
|
|
|
|
DeviceStorageAddParams;
|
2014-06-10 01:51:28 -07:00
|
|
|
DeviceStorageAppendParams;
|
2014-01-16 17:01:27 -08:00
|
|
|
DeviceStorageCreateFdParams;
|
2012-06-19 16:14:39 -07:00
|
|
|
DeviceStorageGetParams;
|
|
|
|
DeviceStorageDeleteParams;
|
|
|
|
DeviceStorageEnumerationParams;
|
2013-01-25 11:05:24 -08:00
|
|
|
DeviceStorageFreeSpaceParams;
|
|
|
|
DeviceStorageUsedSpaceParams;
|
|
|
|
DeviceStorageAvailableParams;
|
2014-02-18 18:48:05 -08:00
|
|
|
DeviceStorageStatusParams;
|
2013-09-05 23:11:58 -07:00
|
|
|
DeviceStorageFormatParams;
|
2014-03-04 03:24:19 -08:00
|
|
|
DeviceStorageMountParams;
|
|
|
|
DeviceStorageUnmountParams;
|
2012-06-19 16:14:39 -07:00
|
|
|
};
|
2012-08-01 23:02:29 -07:00
|
|
|
|
2013-09-03 15:28:06 -07:00
|
|
|
struct FMRadioRequestEnableParams
|
|
|
|
{
|
|
|
|
double frequency;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FMRadioRequestDisableParams
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FMRadioRequestSetFrequencyParams
|
|
|
|
{
|
|
|
|
double frequency;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FMRadioRequestSeekParams
|
|
|
|
{
|
|
|
|
bool upward;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FMRadioRequestCancelSeekParams
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
union FMRadioRequestParams
|
|
|
|
{
|
|
|
|
FMRadioRequestEnableParams;
|
|
|
|
FMRadioRequestDisableParams;
|
|
|
|
FMRadioRequestSetFrequencyParams;
|
|
|
|
FMRadioRequestSeekParams;
|
|
|
|
FMRadioRequestCancelSeekParams;
|
|
|
|
};
|
|
|
|
|
2014-03-04 19:25:40 -08:00
|
|
|
struct FileSystemCreateDirectoryParams
|
|
|
|
{
|
|
|
|
nsString filesystem;
|
|
|
|
nsString realPath;
|
|
|
|
};
|
|
|
|
|
2014-03-05 00:40:48 -08:00
|
|
|
union FileSystemFileDataValue
|
|
|
|
{
|
|
|
|
uint8_t[];
|
|
|
|
PBlob;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FileSystemCreateFileParams
|
|
|
|
{
|
|
|
|
nsString filesystem;
|
|
|
|
nsString realPath;
|
|
|
|
FileSystemFileDataValue data;
|
|
|
|
bool replace;
|
|
|
|
};
|
|
|
|
|
2015-06-22 16:31:32 -07:00
|
|
|
struct FileSystemGetDirectoryListingParams
|
|
|
|
{
|
|
|
|
nsString filesystem;
|
|
|
|
nsString realPath;
|
|
|
|
};
|
|
|
|
|
2014-03-04 19:25:40 -08:00
|
|
|
struct FileSystemGetFileOrDirectoryParams
|
|
|
|
{
|
|
|
|
nsString filesystem;
|
|
|
|
nsString realPath;
|
|
|
|
};
|
|
|
|
|
2014-03-11 23:30:21 -07:00
|
|
|
union FileSystemPathOrFileValue
|
|
|
|
{
|
|
|
|
nsString;
|
|
|
|
PBlob;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FileSystemRemoveParams
|
|
|
|
{
|
|
|
|
nsString filesystem;
|
|
|
|
nsString directory;
|
|
|
|
FileSystemPathOrFileValue target;
|
|
|
|
bool recursive;
|
|
|
|
};
|
|
|
|
|
2014-03-04 19:25:40 -08:00
|
|
|
union FileSystemParams
|
|
|
|
{
|
|
|
|
FileSystemCreateDirectoryParams;
|
2014-03-05 00:40:48 -08:00
|
|
|
FileSystemCreateFileParams;
|
2015-06-22 16:31:32 -07:00
|
|
|
FileSystemGetDirectoryListingParams;
|
2014-03-04 19:25:40 -08:00
|
|
|
FileSystemGetFileOrDirectoryParams;
|
2014-03-11 23:30:21 -07:00
|
|
|
FileSystemRemoveParams;
|
2014-03-04 19:25:40 -08:00
|
|
|
};
|
|
|
|
|
2012-08-22 13:00:21 -07:00
|
|
|
union PrefValue {
|
|
|
|
nsCString;
|
|
|
|
int32_t;
|
|
|
|
bool;
|
|
|
|
};
|
|
|
|
|
|
|
|
union MaybePrefValue {
|
|
|
|
PrefValue;
|
|
|
|
null_t;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PrefSetting {
|
|
|
|
nsCString name;
|
|
|
|
MaybePrefValue defaultValue;
|
|
|
|
MaybePrefValue userValue;
|
|
|
|
};
|
|
|
|
|
2014-06-03 07:36:46 -07:00
|
|
|
struct DataStoreSetting {
|
|
|
|
nsString name;
|
|
|
|
nsString originURL;
|
|
|
|
nsString manifestURL;
|
|
|
|
bool readOnly;
|
|
|
|
bool enabled;
|
|
|
|
};
|
|
|
|
|
2014-09-15 11:51:25 -07:00
|
|
|
// Note: Any changes to this structure should also be changed in
|
|
|
|
// FileSystemUpdate below.
|
|
|
|
struct VolumeInfo {
|
|
|
|
nsString name;
|
|
|
|
nsString mountPoint;
|
|
|
|
int32_t volState;
|
|
|
|
int32_t mountGeneration;
|
|
|
|
bool isMediaPresent;
|
|
|
|
bool isSharing;
|
|
|
|
bool isFormatting;
|
|
|
|
bool isFake;
|
2014-09-21 20:42:33 -07:00
|
|
|
bool isUnmounting;
|
2014-12-21 18:33:33 -08:00
|
|
|
bool isRemovable;
|
|
|
|
bool isHotSwappable;
|
2014-09-15 11:51:25 -07:00
|
|
|
};
|
|
|
|
|
2014-10-22 02:50:00 -07:00
|
|
|
struct ClipboardCapabilities {
|
|
|
|
bool supportsSelectionClipboard;
|
|
|
|
bool supportsFindClipboard;
|
|
|
|
};
|
|
|
|
|
2014-09-18 08:59:00 -07:00
|
|
|
union MaybeFileDesc {
|
|
|
|
FileDescriptor;
|
|
|
|
void_t;
|
|
|
|
};
|
|
|
|
|
2015-03-10 02:32:00 -07:00
|
|
|
union FileDescOrError {
|
|
|
|
FileDescriptor;
|
|
|
|
nsresult;
|
|
|
|
};
|
|
|
|
|
2014-12-06 07:31:53 -08:00
|
|
|
union OptionalContentId
|
|
|
|
{
|
|
|
|
ContentParentId;
|
|
|
|
void_t;
|
|
|
|
};
|
|
|
|
|
2015-03-24 07:29:16 -07:00
|
|
|
struct DomainPolicyClone
|
|
|
|
{
|
|
|
|
bool active;
|
|
|
|
URIParams[] blacklist;
|
|
|
|
URIParams[] whitelist;
|
|
|
|
URIParams[] superBlacklist;
|
|
|
|
URIParams[] superWhitelist;
|
|
|
|
};
|
|
|
|
|
2015-04-23 15:05:29 -07:00
|
|
|
struct GamepadAdded {
|
|
|
|
nsString id;
|
|
|
|
uint32_t index;
|
|
|
|
uint32_t mapping;
|
|
|
|
uint32_t num_buttons;
|
|
|
|
uint32_t num_axes;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GamepadRemoved {
|
|
|
|
uint32_t index;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GamepadAxisInformation {
|
|
|
|
uint32_t index;
|
|
|
|
uint32_t axis;
|
|
|
|
double value;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GamepadButtonInformation {
|
|
|
|
uint32_t index;
|
|
|
|
uint32_t button;
|
|
|
|
bool pressed;
|
|
|
|
double value;
|
|
|
|
};
|
|
|
|
|
|
|
|
union GamepadChangeEvent {
|
|
|
|
GamepadAdded;
|
|
|
|
GamepadRemoved;
|
|
|
|
GamepadAxisInformation;
|
|
|
|
GamepadButtonInformation;
|
|
|
|
};
|
|
|
|
|
2015-01-28 11:53:46 -08:00
|
|
|
prio(normal upto urgent) sync protocol PContent
|
2009-07-10 23:33:10 -07:00
|
|
|
{
|
2014-10-29 08:05:36 -07:00
|
|
|
parent spawns PPluginModule;
|
|
|
|
|
2012-07-17 16:59:45 -07:00
|
|
|
parent opens PCompositor;
|
2015-01-16 18:34:47 -08:00
|
|
|
parent opens PProcessHangMonitor;
|
2014-04-30 18:52:00 -07:00
|
|
|
parent opens PSharedBufferManager;
|
2012-08-29 05:24:48 -07:00
|
|
|
parent opens PImageBridge;
|
2015-02-10 02:49:03 -08:00
|
|
|
parent opens PGMPService;
|
2013-11-26 23:59:41 -08:00
|
|
|
child opens PBackground;
|
2012-07-17 16:59:45 -07:00
|
|
|
|
2012-08-01 23:02:29 -07:00
|
|
|
manages PBlob;
|
2012-09-13 09:37:14 -07:00
|
|
|
manages PBluetooth;
|
2010-07-19 11:33:33 -07:00
|
|
|
manages PBrowser;
|
2014-08-18 02:06:11 -07:00
|
|
|
manages PCellBroadcast;
|
2015-04-13 18:08:00 -07:00
|
|
|
manages PContentPermissionRequest;
|
2010-11-24 06:15:03 -08:00
|
|
|
manages PCrashReporter;
|
2014-05-13 10:13:00 -07:00
|
|
|
manages PCycleCollectWithLogs;
|
2012-06-19 16:14:39 -07:00
|
|
|
manages PDeviceStorageRequest;
|
2014-03-04 19:25:40 -08:00
|
|
|
manages PFileSystemRequest;
|
2015-04-22 12:55:23 -07:00
|
|
|
manages PPSMContentDownloader;
|
2010-09-15 15:55:08 -07:00
|
|
|
manages PExternalHelperApp;
|
2014-03-25 11:37:13 -07:00
|
|
|
manages PFileDescriptorSet;
|
2013-09-03 15:28:06 -07:00
|
|
|
manages PFMRadio;
|
2011-10-05 15:15:45 -07:00
|
|
|
manages PHal;
|
2015-09-22 12:09:42 -07:00
|
|
|
manages PHeapSnapshotTempFileHelper;
|
2015-01-06 22:53:21 -08:00
|
|
|
manages PIcc;
|
2015-06-18 08:46:36 -07:00
|
|
|
manages PMedia;
|
2011-02-16 10:43:23 -08:00
|
|
|
manages PMemoryReportRequest;
|
2014-07-01 03:09:08 -07:00
|
|
|
manages PMobileConnection;
|
2011-10-05 15:15:45 -07:00
|
|
|
manages PNecko;
|
2014-11-12 16:31:00 -08:00
|
|
|
manages POfflineCacheUpdate;
|
2014-10-28 08:59:08 -07:00
|
|
|
manages PPrinting;
|
2014-07-14 10:22:26 -07:00
|
|
|
manages PScreenManager;
|
2011-11-20 14:40:53 -08:00
|
|
|
manages PSms;
|
2013-04-03 15:13:17 -07:00
|
|
|
manages PSpeechSynthesis;
|
2011-10-05 15:15:45 -07:00
|
|
|
manages PStorage;
|
2013-09-06 23:19:50 -07:00
|
|
|
manages PTelephony;
|
2011-10-05 15:15:45 -07:00
|
|
|
manages PTestShell;
|
2014-09-25 22:00:24 -07:00
|
|
|
manages PVoicemail;
|
2013-07-03 00:24:32 -07:00
|
|
|
manages PJavaScript;
|
2014-07-01 15:24:27 -07:00
|
|
|
manages PRemoteSpellcheckEngine;
|
2015-09-21 05:54:00 -07:00
|
|
|
manages PWebBrowserPersistDocument;
|
2015-04-21 15:29:18 -07:00
|
|
|
manages PWebrtcGlobal;
|
2015-03-25 20:16:21 -07:00
|
|
|
manages PPresentation;
|
2009-08-25 16:07:22 -07:00
|
|
|
|
2012-06-12 15:01:25 -07: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 10:32:37 -08:00
|
|
|
// TabChild::BrowserFrameProvideWindow (which happens when the child's
|
|
|
|
// content calls window.open()), and the parent creates the PBrowser as part
|
2013-06-20 15:54:01 -07:00
|
|
|
// of ContentParent::CreateBrowserOrApp.
|
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 10:32:37 -08:00
|
|
|
//
|
2015-10-06 20:47:46 -07:00
|
|
|
// When the parent constructs a PBrowser, the child trusts the app token and
|
|
|
|
// other 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 10:32:37 -08:00
|
|
|
//
|
|
|
|
// When the child constructs a PBrowser, the parent doesn't trust the app
|
|
|
|
// token it receives from the child. In this case, context must have type
|
|
|
|
// PopupIPCTabContext. The browser created using a PopupIPCTabContext has
|
|
|
|
// the opener PBrowser's app-id and containing-app-id. The parent checks
|
|
|
|
// that if the opener is a browser element, the context is also for a
|
|
|
|
// browser element.
|
2012-08-08 19:58:06 -07:00
|
|
|
//
|
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 10:32:37 -08:00
|
|
|
// This allows the parent to prevent a malicious child from escalating its
|
|
|
|
// privileges by requesting a PBrowser corresponding to a highly-privileged
|
|
|
|
// app; the child can only request privileges for an app which the child has
|
|
|
|
// access to (in the form of a TabChild).
|
2014-06-03 14:15:27 -07:00
|
|
|
//
|
|
|
|
// Keep the last 3 attributes in sync with GetProcessAttributes!
|
2014-10-29 11:11:00 -07:00
|
|
|
async PBrowser(TabId tabId, IPCTabContext context, uint32_t chromeFlags,
|
2014-10-23 17:28:00 -07:00
|
|
|
ContentParentId cpId, bool isForApp, bool isForBrowser);
|
2009-08-25 16:07:22 -07:00
|
|
|
|
2012-08-01 23:02:29 -07:00
|
|
|
async PBlob(BlobConstructorParams params);
|
|
|
|
|
2014-03-25 11:37:28 -07:00
|
|
|
PFileDescriptorSet(FileDescriptor fd);
|
|
|
|
|
2015-09-21 05:54:00 -07: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.
|
|
|
|
PWebBrowserPersistDocument(nullable PBrowser aBrowser,
|
|
|
|
uint64_t aOuterWindowID);
|
|
|
|
|
2012-06-12 15:01:25 -07:00
|
|
|
child:
|
2013-01-17 12:06:36 -08:00
|
|
|
/**
|
2014-03-12 15:48:15 -07: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 12:06:36 -08:00
|
|
|
*/
|
2015-10-07 22:13:09 -07:00
|
|
|
async SetProcessSandbox(MaybeFileDesc aBroker);
|
2013-01-17 12:06:36 -08:00
|
|
|
|
2014-05-20 23:06:54 -07:00
|
|
|
PMemoryReportRequest(uint32_t generation, bool anonymize,
|
2014-09-18 08:59:00 -07:00
|
|
|
bool minimizeMemoryUsage, MaybeFileDesc DMDFile);
|
2011-02-16 10:43:23 -08:00
|
|
|
|
2013-11-24 15:50:03 -08:00
|
|
|
async SpeakerManagerNotify();
|
|
|
|
|
2015-04-10 15:18:05 -07:00
|
|
|
/**
|
|
|
|
* Communication between the PuppetBidiKeyboard and the actual
|
|
|
|
* BidiKeyboard hosted by the parent
|
|
|
|
*/
|
|
|
|
async BidiKeyboardNotify(bool isLangRTL);
|
|
|
|
|
2015-04-13 10:36:06 -07:00
|
|
|
async UpdateServiceWorkerRegistrations();
|
|
|
|
|
2014-06-03 07:36:46 -07:00
|
|
|
async DataStoreNotify(uint32_t aAppId, nsString aName,
|
|
|
|
nsString aManifestURL);
|
|
|
|
|
2012-10-15 19:12:14 -07:00
|
|
|
/**
|
2014-05-13 10:13:00 -07:00
|
|
|
* Dump this process's GC and CC logs to the provided files.
|
2012-10-15 19:12:14 -07:00
|
|
|
*
|
2014-05-13 10:13:00 -07:00
|
|
|
* For documentation on the other args, see dumpGCAndCCLogsToFile in
|
2014-03-04 18:27:13 -08:00
|
|
|
* nsIMemoryInfoDumper.idl
|
2012-10-15 19:12:14 -07:00
|
|
|
*/
|
2014-05-13 10:13:00 -07:00
|
|
|
PCycleCollectWithLogs(bool dumpAllTraces,
|
|
|
|
FileDescriptor gcLog,
|
|
|
|
FileDescriptor ccLog);
|
2012-10-15 19:12:14 -07:00
|
|
|
|
2009-09-09 15:00:14 -07:00
|
|
|
PTestShell();
|
2009-08-25 16:07:22 -07:00
|
|
|
|
2015-07-16 15:50:07 -07:00
|
|
|
RegisterChrome(ChromePackage[] packages, SubstitutionMapping[] substitutions,
|
2014-07-25 13:17:36 -07:00
|
|
|
OverrideMapping[] overrides, nsCString locale, bool reset);
|
|
|
|
RegisterChromeItem(ChromeRegistryItem item);
|
2010-03-10 21:33:00 -08:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
async SetOffline(bool offline);
|
2015-05-01 14:14:39 -07:00
|
|
|
async SetConnectivity(bool connectivity);
|
2010-05-11 05:44:12 -07:00
|
|
|
|
2012-08-23 12:33:46 -07:00
|
|
|
async NotifyVisited(URIParams uri);
|
2010-07-02 08:50:41 -07:00
|
|
|
|
2014-05-20 22:49:36 -07:00
|
|
|
async SystemMemoryAvailable(uint64_t getterId, uint32_t memoryAvailable);
|
|
|
|
|
2012-08-22 13:00:21 -07:00
|
|
|
PreferenceUpdate(PrefSetting pref);
|
2010-05-25 17:13:47 -07:00
|
|
|
|
2010-09-15 09:44:57 -07:00
|
|
|
NotifyAlertsObserver(nsCString topic, nsString data);
|
|
|
|
|
2010-09-20 21:16:37 -07:00
|
|
|
GeolocationUpdate(GeoPosition somewhere);
|
|
|
|
|
2014-10-23 11:31:00 -07:00
|
|
|
GeolocationError(uint16_t errorCode);
|
|
|
|
|
2014-10-03 07:52:37 -07:00
|
|
|
UpdateDictionaryList(nsString[] dictionaries);
|
|
|
|
|
2010-10-09 11:07:38 -07:00
|
|
|
// nsIPermissionManager messages
|
|
|
|
AddPermission(Permission permission);
|
|
|
|
|
2015-09-23 11:49:05 -07:00
|
|
|
ScreenSizeChanged(IntSize size);
|
2010-11-24 10:22:40 -08:00
|
|
|
|
2015-01-27 21:54:10 -08:00
|
|
|
Volumes(VolumeInfo[] volumes);
|
|
|
|
|
2010-12-11 14:36:08 -08:00
|
|
|
FlushMemory(nsString reason);
|
|
|
|
|
2011-09-13 10:53:51 -07:00
|
|
|
GarbageCollect();
|
|
|
|
CycleCollect();
|
2014-10-03 07:52:37 -07:00
|
|
|
|
2011-07-20 21:37:32 -07:00
|
|
|
/**
|
|
|
|
* Start accessibility engine in content process.
|
|
|
|
*/
|
|
|
|
ActivateA11y();
|
|
|
|
|
2014-09-23 23:14:55 -07:00
|
|
|
AppInfo(nsCString version, nsCString buildID, nsCString name, nsCString UAName,
|
|
|
|
nsCString ID, nsCString vendor);
|
2015-05-14 07:49:38 -07:00
|
|
|
AppInit();
|
2011-10-04 13:31:00 -07:00
|
|
|
|
2012-04-19 17:13:20 -07:00
|
|
|
// Notify child that last-pb-context-exited notification was observed
|
|
|
|
LastPrivateDocShellDestroyed();
|
|
|
|
|
2013-05-11 02:10:18 -07:00
|
|
|
FilePathUpdate(nsString storageType, nsString storageName, nsString filepath,
|
|
|
|
nsCString reasons);
|
2012-08-01 23:32:04 -07:00
|
|
|
|
2014-09-15 11:51:25 -07:00
|
|
|
// Note: Any changes to this structure should also be changed in
|
|
|
|
// VolumeInfo above.
|
2012-12-14 16:01:34 -08:00
|
|
|
FileSystemUpdate(nsString fsName, nsString mountPoint, int32_t fsState,
|
2013-08-22 16:12:25 -07:00
|
|
|
int32_t mountGeneration, bool isMediaPresent,
|
2014-12-21 18:33:33 -08:00
|
|
|
bool isSharing, bool isFormatting, bool isFake,
|
|
|
|
bool isUnmounting, bool isRemovable, bool isHotSwappable);
|
2012-08-03 16:48:58 -07:00
|
|
|
|
2015-05-03 23:11:00 -07:00
|
|
|
// Notify volume is removed.
|
|
|
|
VolumeRemoved(nsString fsName);
|
|
|
|
|
2013-04-25 17:53:26 -07:00
|
|
|
NotifyProcessPriorityChanged(ProcessPriority priority);
|
|
|
|
MinimizeMemoryUsage();
|
|
|
|
|
2013-08-27 10:10:39 -07:00
|
|
|
/**
|
|
|
|
* Used to manage nsIStyleSheetService across processes.
|
|
|
|
*/
|
|
|
|
async LoadAndRegisterSheet(URIParams uri, uint32_t type);
|
|
|
|
async UnregisterSheet(URIParams uri, uint32_t type);
|
|
|
|
|
2013-09-13 01:51:45 -07:00
|
|
|
NotifyPhoneStateChange(nsString newState);
|
2013-12-13 08:28:46 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify idle observers in the child
|
|
|
|
*/
|
|
|
|
NotifyIdleObserver(uint64_t observerId, nsCString topic, nsString str);
|
2014-08-28 17:20:27 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify windows in the child to apply a new app style.
|
|
|
|
*/
|
|
|
|
OnAppThemeChanged();
|
|
|
|
|
2014-12-29 15:13:54 -08: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 09:50:25 -08:00
|
|
|
/**
|
|
|
|
* Control the Gecko Profiler in the child process.
|
|
|
|
*/
|
|
|
|
async StartProfiler(uint32_t aEntries, double aInterval, nsCString[] aFeatures,
|
|
|
|
nsCString[] aThreadNameFilters);
|
|
|
|
async StopProfiler();
|
2015-07-15 09:39:39 -07:00
|
|
|
async PauseProfiler(bool aPause);
|
2015-06-10 14:58:30 -07:00
|
|
|
|
|
|
|
async GatherProfile();
|
2014-11-18 09:50:25 -08:00
|
|
|
|
2015-04-08 11:48:11 -07:00
|
|
|
InvokeDragSession(IPCDataTransfer[] transfers, uint32_t action);
|
|
|
|
|
|
|
|
EndDragSession(bool aDoneDrag, bool aUserCancelled);
|
2015-01-10 10:18:59 -08:00
|
|
|
|
2015-03-24 07:29:16 -07:00
|
|
|
async DomainSetChanged(uint32_t aSetType, uint32_t aChangeType, OptionalURIParams aDomain);
|
|
|
|
|
2015-01-10 10:18:59 -08:00
|
|
|
/**
|
|
|
|
* Notify the child to shutdown. The child will in turn call FinishShutdown
|
|
|
|
* and let the parent close the channel.
|
|
|
|
*/
|
|
|
|
async Shutdown();
|
|
|
|
|
2015-02-19 17:13:02 -08:00
|
|
|
async LoadProcessScript(nsString url);
|
|
|
|
|
2015-04-07 06:17:27 -07:00
|
|
|
/**
|
|
|
|
* Requests a full native update of a native plugin child window. This is
|
|
|
|
* a Windows specific call.
|
|
|
|
*/
|
|
|
|
async UpdateWindow(uintptr_t aChildId);
|
|
|
|
|
2015-04-23 15:05:29 -07:00
|
|
|
/**
|
|
|
|
* Send gamepad status update to child.
|
|
|
|
*/
|
|
|
|
GamepadUpdate(GamepadChangeEvent aGamepadEvent);
|
2015-07-30 00:23:53 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Tell the child that for testing purposes, a graphics device reset has
|
|
|
|
* occurred.
|
|
|
|
*/
|
|
|
|
async TestGraphicsDeviceReset(uint32_t aReason);
|
2015-03-25 20:16:21 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify the child that presentation receiver has been launched with the
|
|
|
|
* correspondent iframe.
|
|
|
|
*/
|
|
|
|
async NotifyPresentationReceiverLaunched(PBrowser aIframe, nsString aSessionId);
|
|
|
|
|
2015-08-30 22:24:35 -07:00
|
|
|
/**
|
|
|
|
* Notify the child that the info about a presentation receiver needs to be
|
|
|
|
* cleaned up.
|
|
|
|
*/
|
|
|
|
async NotifyPresentationReceiverCleanUp(nsString aSessionId);
|
|
|
|
|
2009-08-18 12:05:15 -07:00
|
|
|
parent:
|
2012-09-04 17:36:16 -07:00
|
|
|
/**
|
|
|
|
* Tell the content process some attributes of itself. This is
|
|
|
|
* among the first information queried by content processes after
|
|
|
|
* startup. (The message is sync to allow the content process to
|
|
|
|
* control when it receives the information.)
|
|
|
|
*
|
|
|
|
* |id| is a unique ID among all subprocesses. When |isForApp &&
|
|
|
|
* isForBrowser|, we're loading <browser> for an app. When
|
|
|
|
* |isForBrowser|, we're loading <browser>. When |!isForApp &&
|
|
|
|
* !isForBrowser|, we're probably loading <xul:browser remote>.
|
2014-06-03 14:15:27 -07:00
|
|
|
*
|
|
|
|
* Keep the return values in sync with PBrowser()!
|
2012-09-04 17:36:16 -07:00
|
|
|
*/
|
|
|
|
sync GetProcessAttributes()
|
2014-10-23 17:28:00 -07:00
|
|
|
returns (ContentParentId cpId, bool isForApp, bool isForBrowser);
|
2012-11-08 13:09:39 -08:00
|
|
|
sync GetXPCOMProcessAttributes()
|
2015-05-01 14:14:39 -07:00
|
|
|
returns (bool isOffline, bool isConnected, bool isLangRTL, nsString[] dictionaries,
|
2015-03-24 07:29:16 -07:00
|
|
|
ClipboardCapabilities clipboardCaps,
|
2015-04-30 18:20:51 -07:00
|
|
|
DomainPolicyClone domainPolicy,
|
2015-09-10 13:50:58 -07:00
|
|
|
StructuredCloneData initialData);
|
2012-09-04 17:36:16 -07:00
|
|
|
|
2014-06-10 22:44:13 -07:00
|
|
|
sync CreateChildProcess(IPCTabContext context,
|
2014-10-29 11:11:00 -07:00
|
|
|
ProcessPriority priority,
|
|
|
|
TabId openerTabId)
|
|
|
|
returns (ContentParentId cpId, bool isForApp, bool isForBrowser, TabId tabId);
|
2014-12-18 17:35:48 -08:00
|
|
|
sync BridgeToChildProcess(ContentParentId cpId);
|
2014-06-10 22:44:13 -07:00
|
|
|
|
2015-02-10 02:49:03 -08:00
|
|
|
async CreateGMPService();
|
|
|
|
sync GetGMPPluginVersionForAPI(nsCString api, nsCString[] tags)
|
|
|
|
returns (bool hasPlugin, nsCString version);
|
2015-08-31 22:31:48 -07:00
|
|
|
sync IsGMPPresentOnDisk(nsString keySystem, nsCString version)
|
|
|
|
returns (bool isPresent, nsCString message);
|
2015-02-10 02:49:03 -08:00
|
|
|
|
2014-10-29 08:05:36 -07:00
|
|
|
/**
|
|
|
|
* This call connects the content process to a plugin process. While this
|
|
|
|
* call runs, a new PluginModuleParent will be created in the ContentChild
|
|
|
|
* via bridging. The corresponding PluginModuleChild will live in the plugin
|
2015-03-26 00:04:00 -07:00
|
|
|
* process.
|
2014-10-29 08:05:36 -07:00
|
|
|
*/
|
2015-03-17 10:42:34 -07:00
|
|
|
sync LoadPlugin(uint32_t aPluginId) returns (nsresult aResult, uint32_t aRunID);
|
2014-10-29 08:05:36 -07:00
|
|
|
|
2015-01-16 13:03:27 -08: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
|
|
|
|
* the specified plugin id. When this call returns, the requested bridge
|
|
|
|
* connection has been made.
|
|
|
|
*/
|
2015-01-30 08:37:03 -08:00
|
|
|
sync ConnectPluginBridge(uint32_t aPluginId) returns (nsresult rv);
|
2015-01-16 13:03:27 -08:00
|
|
|
|
2015-05-01 08:07:19 -07:00
|
|
|
/**
|
|
|
|
* Return the current blocklist state for a particular plugin.
|
|
|
|
*/
|
|
|
|
sync GetBlocklistState(uint32_t aPluginId) returns (uint32_t aState);
|
|
|
|
|
2014-10-29 08:05:36 -07: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.
|
|
|
|
*/
|
|
|
|
sync FindPlugins(uint32_t pluginEpoch) returns (PluginTag[] plugins, uint32_t newPluginEpoch);
|
|
|
|
|
2014-05-08 15:43:53 -07:00
|
|
|
async PJavaScript();
|
|
|
|
|
2015-04-21 13:05:00 -07:00
|
|
|
PRemoteSpellcheckEngine();
|
2012-06-19 16:14:39 -07:00
|
|
|
PDeviceStorageRequest(DeviceStorageParams params);
|
|
|
|
|
2014-03-04 19:25:40 -08:00
|
|
|
PFileSystemRequest(FileSystemParams params);
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
sync PCrashReporter(NativeThreadId tid, uint32_t processType);
|
2011-06-08 12:56:31 -07:00
|
|
|
|
2015-07-07 14:21:36 -07:00
|
|
|
prio(urgent) sync GetRandomValues(uint32_t length)
|
2013-02-27 12:31:19 -08:00
|
|
|
returns (uint8_t[] randomValues);
|
|
|
|
|
2014-05-20 22:49:36 -07:00
|
|
|
async GetSystemMemory(uint64_t getterId);
|
|
|
|
|
2014-07-22 05:17:45 -07:00
|
|
|
sync IsSecureURI(uint32_t type, URIParams uri, uint32_t flags)
|
|
|
|
returns (bool isSecureURI);
|
|
|
|
|
2015-09-09 12:14:27 -07:00
|
|
|
async AccumulateMixedContentHSTS(URIParams uri, bool active);
|
|
|
|
|
2015-07-10 14:11:59 -07:00
|
|
|
sync GetLookAndFeelCache()
|
|
|
|
returns (LookAndFeelInt[] lookAndFeelIntCache);
|
2015-04-22 07:58:15 -07:00
|
|
|
|
2015-06-23 14:34:00 -07:00
|
|
|
prio(urgent) async PHal();
|
2011-10-05 15:15:45 -07:00
|
|
|
|
2015-09-22 12:09:42 -07:00
|
|
|
async PHeapSnapshotTempFileHelper();
|
|
|
|
|
2015-01-06 22:53:21 -08:00
|
|
|
PIcc(uint32_t serviceId);
|
|
|
|
|
2014-07-01 03:09:08 -07:00
|
|
|
PMobileConnection(uint32_t clientId);
|
|
|
|
|
2011-10-05 15:15:45 -07:00
|
|
|
PNecko();
|
2011-11-20 14:40:53 -08:00
|
|
|
|
2014-10-28 08:59:08 -07:00
|
|
|
PPrinting();
|
|
|
|
|
2014-10-07 21:32:45 -07:00
|
|
|
prio(high) sync PScreenManager()
|
2014-07-14 10:22:26 -07:00
|
|
|
returns (uint32_t numberOfScreens,
|
|
|
|
float systemDefaultScale,
|
|
|
|
bool success);
|
|
|
|
|
2014-08-18 02:06:11 -07:00
|
|
|
PCellBroadcast();
|
|
|
|
|
2011-11-20 14:40:53 -08:00
|
|
|
PSms();
|
2013-04-03 15:13:17 -07:00
|
|
|
|
|
|
|
PSpeechSynthesis();
|
2013-04-10 05:18:38 -07:00
|
|
|
|
2015-06-11 18:53:31 -07:00
|
|
|
prio(urgent) async PStorage();
|
2011-10-05 15:15:45 -07:00
|
|
|
|
2013-09-06 23:19:50 -07:00
|
|
|
PTelephony();
|
|
|
|
|
2014-09-25 22:00:24 -07:00
|
|
|
PVoicemail();
|
|
|
|
|
2015-06-18 08:46:36 -07:00
|
|
|
PMedia();
|
|
|
|
|
2012-09-13 09:37:14 -07:00
|
|
|
PBluetooth();
|
|
|
|
|
2013-09-03 15:28:06 -07:00
|
|
|
PFMRadio();
|
|
|
|
|
2015-04-21 15:29:18 -07:00
|
|
|
PWebrtcGlobal();
|
2015-09-09 12:14:27 -07:00
|
|
|
|
2015-03-25 20:16:21 -07:00
|
|
|
PPresentation();
|
2015-04-21 15:29:18 -07:00
|
|
|
|
2010-07-15 07:04:25 -07:00
|
|
|
// Services remoting
|
|
|
|
|
2012-08-23 12:33:46 -07:00
|
|
|
async StartVisitedQuery(URIParams uri);
|
|
|
|
async VisitURI(URIParams uri, OptionalURIParams referrer, uint32_t flags);
|
|
|
|
async SetURITitle(URIParams uri, nsString title);
|
2010-07-02 08:50:41 -07:00
|
|
|
|
2012-08-23 12:33:46 -07:00
|
|
|
async LoadURIExternal(URIParams uri);
|
2010-08-10 10:14:45 -07:00
|
|
|
|
2010-10-19 13:35:08 -07:00
|
|
|
// PrefService message
|
2012-08-22 13:00:21 -07:00
|
|
|
sync ReadPrefsArray() returns (PrefSetting[] prefs);
|
2010-07-15 07:04:25 -07:00
|
|
|
|
2011-01-12 20:04:42 -08:00
|
|
|
sync ReadFontList() returns (FontListEntry[] retValue);
|
|
|
|
|
2013-11-06 09:21:15 -08:00
|
|
|
sync SyncMessage(nsString aMessage, ClonedMessageData aData,
|
|
|
|
CpowEntry[] aCpows, Principal aPrincipal)
|
2015-09-10 13:50:58 -07:00
|
|
|
returns (StructuredCloneData[] retval);
|
2010-08-31 11:58:35 -07:00
|
|
|
|
2014-10-07 21:32:45 -07:00
|
|
|
prio(high) sync RpcMessage(nsString aMessage, ClonedMessageData aData,
|
|
|
|
CpowEntry[] aCpows, Principal aPrincipal)
|
2015-09-10 13:50:58 -07:00
|
|
|
returns (StructuredCloneData[] retval);
|
2013-10-01 09:15:06 -07:00
|
|
|
|
2013-03-18 06:24:53 -07:00
|
|
|
ShowAlertNotification(nsString imageUrl,
|
|
|
|
nsString title,
|
|
|
|
nsString text,
|
2011-09-28 23:19:26 -07:00
|
|
|
bool textClickable,
|
2010-09-15 09:44:57 -07:00
|
|
|
nsString cookie,
|
2013-03-18 06:24:53 -07:00
|
|
|
nsString name,
|
|
|
|
nsString bidi,
|
2013-11-11 15:56:21 -08:00
|
|
|
nsString lang,
|
2014-08-20 17:56:12 -07:00
|
|
|
nsString data,
|
2014-11-28 11:08:29 -08:00
|
|
|
Principal principal,
|
|
|
|
bool inPrivateBrowsing);
|
2013-03-18 06:24:53 -07:00
|
|
|
|
2013-11-11 15:56:21 -08:00
|
|
|
CloseAlert(nsString name, Principal principal);
|
2010-09-15 09:44:57 -07:00
|
|
|
|
2015-10-22 14:10:14 -07:00
|
|
|
DisableNotifications(Principal principal);
|
|
|
|
|
2015-10-22 14:20:51 -07:00
|
|
|
OpenNotificationSettings(Principal principal);
|
|
|
|
|
2015-04-22 12:55:23 -07:00
|
|
|
PPSMContentDownloader(uint32_t aCertType);
|
|
|
|
|
2014-08-18 02:06:11 -07:00
|
|
|
PExternalHelperApp(OptionalURIParams uri,
|
2014-02-13 14:43:58 -08:00
|
|
|
nsCString aMimeContentType,
|
2014-08-18 02:06:11 -07:00
|
|
|
nsCString aContentDisposition,
|
|
|
|
uint32_t aContentDispositionHint,
|
|
|
|
nsString aContentDispositionFilename,
|
2014-02-13 14:43:58 -08:00
|
|
|
bool aForceSave,
|
|
|
|
int64_t aContentLength,
|
|
|
|
OptionalURIParams aReferrer,
|
2013-09-12 12:24:10 -07:00
|
|
|
nullable PBrowser aBrowser);
|
2012-08-23 12:33:46 -07:00
|
|
|
|
2013-02-26 09:27:31 -08:00
|
|
|
AddGeolocationListener(Principal principal, bool highAccuracy);
|
2010-11-05 10:43:13 -07:00
|
|
|
RemoveGeolocationListener();
|
2012-12-31 08:36:46 -08:00
|
|
|
SetGeolocationHigherAccuracy(bool enable);
|
2010-09-15 15:55:08 -07:00
|
|
|
|
2010-09-23 18:39:32 -07:00
|
|
|
ConsoleMessage(nsString message);
|
|
|
|
ScriptError(nsString message, nsString sourceName, nsString sourceLine,
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t lineNumber, uint32_t colNumber, uint32_t flags,
|
2014-08-18 02:06:11 -07:00
|
|
|
nsCString category);
|
2010-09-23 18:39:32 -07:00
|
|
|
|
2010-10-09 11:07:38 -07:00
|
|
|
// nsIPermissionManager messages
|
|
|
|
sync ReadPermissions() returns (Permission[] permissions);
|
|
|
|
|
2015-04-16 12:38:12 -07:00
|
|
|
// Places the items within dataTransfer on the clipboard.
|
|
|
|
SetClipboard(IPCDataTransfer aDataTransfer,
|
|
|
|
bool aIsPrivateData,
|
|
|
|
int32_t aWhichClipboard);
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
EmptyClipboard(int32_t aWhichClipboard);
|
|
|
|
|
|
|
|
// 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-02-28 21:36:43 -08:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
sync GetSystemColors(uint32_t colorsCount)
|
|
|
|
returns (uint32_t[] colors);
|
2011-03-30 11:04:41 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
sync GetIconForExtension(nsCString aFileExt, uint32_t aIconSize)
|
|
|
|
returns (uint8_t[] bits);
|
2011-06-13 14:02:13 -07:00
|
|
|
|
2011-07-26 18:14:52 -07:00
|
|
|
sync GetShowPasswordSetting()
|
2011-09-28 23:19:26 -07:00
|
|
|
returns (bool showPassword);
|
2011-07-26 18:14:52 -07:00
|
|
|
|
2012-04-19 17:13:20 -07:00
|
|
|
// Notify the parent of the presence or absence of private docshells
|
|
|
|
PrivateDocShellsExist(bool aExist);
|
|
|
|
|
2012-10-08 21:46:19 -07:00
|
|
|
// Tell the parent that the child has gone idle for the first time
|
|
|
|
async FirstIdle();
|
|
|
|
|
2015-07-10 09:38:46 -07:00
|
|
|
async AudioChannelServiceStatus(bool aActiveTelephonyChannel,
|
|
|
|
bool aContentOrNormalChannel,
|
|
|
|
bool aAnyActiveChannel);
|
|
|
|
|
2014-04-10 10:39:20 -07:00
|
|
|
async AudioChannelChangeDefVolChannel(int32_t aChannel, bool aHidden);
|
2012-12-05 19:01:58 -08:00
|
|
|
|
2014-07-16 20:53:23 -07:00
|
|
|
sync DataStoreGetStores(nsString aName, nsString aOwner, Principal aPrincipal)
|
2014-06-03 07:36:46 -07:00
|
|
|
returns (DataStoreSetting[] dataStores);
|
|
|
|
|
2013-01-09 07:03:28 -08:00
|
|
|
async FilePathUpdateNotify(nsString aType,
|
2013-05-11 02:10:18 -07:00
|
|
|
nsString aStorageName,
|
2013-01-09 07:03:28 -08:00
|
|
|
nsString aFilepath,
|
|
|
|
nsCString aReason);
|
2014-09-15 11:51:25 -07:00
|
|
|
|
2013-02-14 12:41:30 -08:00
|
|
|
// Notify the parent that the child has finished handling a system message.
|
|
|
|
async SystemMessageHandled();
|
|
|
|
|
2013-07-08 23:37:47 -07:00
|
|
|
// called by the child (test code only) to propagate volume changes to the parent
|
|
|
|
async CreateFakeVolume(nsString fsName, nsString mountPoint);
|
|
|
|
async SetFakeVolumeState(nsString fsName, int32_t fsState);
|
2015-05-03 23:11:00 -07:00
|
|
|
async RemoveFakeVolume(nsString fsName);
|
2013-07-08 23:37:47 -07:00
|
|
|
|
2013-08-16 10:59:31 -07:00
|
|
|
sync KeywordToURI(nsCString keyword)
|
2014-09-11 06:50:55 -07:00
|
|
|
returns (nsString providerName, OptionalInputStreamParams postData, OptionalURIParams uri);
|
|
|
|
|
|
|
|
sync NotifyKeywordSearchLoading(nsString providerName, nsString keyword);
|
2013-08-16 10:59:31 -07:00
|
|
|
|
2015-04-29 01:57:24 -07:00
|
|
|
async CopyFavicon(URIParams oldURI, URIParams newURI, bool isPrivate);
|
|
|
|
|
2014-06-10 22:44:39 -07:00
|
|
|
// Tell the compositor to allocate a layer tree id for nested remote mozbrowsers.
|
|
|
|
sync AllocateLayerTreeId()
|
|
|
|
returns (uint64_t id);
|
|
|
|
async DeallocateLayerTreeId(uint64_t id);
|
|
|
|
|
2013-11-24 15:50:03 -08:00
|
|
|
sync SpeakerManagerForceSpeaker(bool aEnable);
|
|
|
|
|
|
|
|
sync SpeakerManagerGetSpeakerStatus()
|
|
|
|
returns (bool value);
|
|
|
|
|
2013-11-24 01:06:27 -08: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);
|
|
|
|
|
2014-01-10 17:09:20 -08:00
|
|
|
sync GetGraphicsFeatureStatus(int32_t aFeature) returns (int32_t aStatus, bool aSuccess);
|
|
|
|
|
2015-08-11 20:22:20 -07:00
|
|
|
// Driver crash guards. aGuardType must be a member of CrashGuardType.
|
|
|
|
sync BeginDriverCrashGuard(uint32_t aGuardType) returns (bool crashDetected);
|
|
|
|
sync EndDriverCrashGuard(uint32_t aGuardType);
|
|
|
|
|
2013-12-13 08:28:46 -08:00
|
|
|
AddIdleObserver(uint64_t observerId, uint32_t idleTimeInS);
|
|
|
|
RemoveIdleObserver(uint64_t observerId, uint32_t idleTimeInS);
|
2014-02-05 08:37:26 -08: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.
|
|
|
|
*/
|
|
|
|
BackUpXResources(FileDescriptor aXSocketFd);
|
|
|
|
|
2015-03-10 02:32:00 -07:00
|
|
|
sync OpenAnonymousTemporaryFile() returns (FileDescOrError aFD);
|
2014-06-24 10:11:36 -07:00
|
|
|
|
2014-11-26 14:28:28 -08: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.
|
|
|
|
*/
|
2014-12-19 09:07:04 -08:00
|
|
|
prio(urgent) sync KeygenProcessValue(nsString oldValue,
|
|
|
|
nsString challenge,
|
|
|
|
nsString keytype,
|
|
|
|
nsString keyparams)
|
2014-11-26 14:28:28 -08:00
|
|
|
returns (nsString newValue);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called to provide the options for <keygen> elements.
|
|
|
|
*/
|
2014-12-19 09:07:04 -08:00
|
|
|
sync KeygenProvideContent()
|
|
|
|
returns (nsString aAttribute, nsString[] aContent);
|
2014-11-26 14:28:28 -08:00
|
|
|
|
2014-09-26 16:21:57 -07:00
|
|
|
// Use only for testing!
|
|
|
|
sync GetFileReferences(PersistenceType persistenceType,
|
|
|
|
nsCString origin,
|
|
|
|
nsString databaseName,
|
|
|
|
int64_t fileId)
|
|
|
|
returns (int32_t refCnt, int32_t dBRefCnt, int32_t sliceRefCnt,
|
|
|
|
bool result);
|
|
|
|
|
2015-06-30 05:59:27 -07:00
|
|
|
// Use only for testing!
|
|
|
|
FlushPendingFileDeletions();
|
|
|
|
|
2014-10-29 11:11:00 -07: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 00:18:00 -07:00
|
|
|
async DeallocateTabId(TabId tabId,
|
|
|
|
ContentParentId cpId,
|
|
|
|
bool aMarkedDestroying);
|
2014-10-29 11:11:00 -07:00
|
|
|
|
2015-08-28 00:18:00 -07:00
|
|
|
/**
|
|
|
|
* Tell the chrome process there is a destruction of PBrowser(Tab)
|
|
|
|
*/
|
|
|
|
async NotifyTabDestroying(TabId tabId,
|
|
|
|
ContentParentId cpId);
|
2014-11-12 16:31:00 -08: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 09:13:52 -07:00
|
|
|
* @param loadingPrincipal
|
|
|
|
* Principal of the document that referred the manifest
|
2014-11-12 16:31:00 -08: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.
|
|
|
|
*/
|
|
|
|
POfflineCacheUpdate(URIParams manifestURI, URIParams documentURI,
|
2015-10-02 09:13:52 -07:00
|
|
|
PrincipalInfo loadingPrincipal, bool stickDocument,
|
|
|
|
TabId tabId);
|
2014-11-12 16:31:00 -08: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.
|
|
|
|
*/
|
|
|
|
SetOfflinePermission(Principal principal);
|
|
|
|
|
2015-01-10 10:18:59 -08:00
|
|
|
/**
|
|
|
|
* Notifies the parent to continue shutting down after the child performs
|
|
|
|
* its shutdown tasks.
|
|
|
|
*/
|
|
|
|
async FinishShutdown();
|
|
|
|
|
2015-04-08 11:48:11 -07:00
|
|
|
UpdateDropEffect(uint32_t aDragAction, uint32_t aDropEffect);
|
2015-04-13 18:08:00 -07: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.
|
|
|
|
*/
|
|
|
|
PContentPermissionRequest(PermissionRequest[] aRequests, Principal aPrincipal,
|
|
|
|
TabId tabId);
|
|
|
|
|
2015-04-23 16:41:00 -07:00
|
|
|
/**
|
|
|
|
* Send ServiceWorkerRegistrationData to child process.
|
|
|
|
*/
|
|
|
|
sync GetBrowserConfiguration(nsCString aUri)
|
|
|
|
returns (BrowserConfiguration aConfig);
|
|
|
|
|
2015-04-23 15:05:29 -07:00
|
|
|
/*
|
|
|
|
* Tells the parent to start the gamepad listening service if it hasn't already.
|
|
|
|
*/
|
|
|
|
GamepadListenerAdded();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Tells the parent to stop the gamepad listening service if it hasn't already.
|
|
|
|
*/
|
|
|
|
GamepadListenerRemoved();
|
|
|
|
|
2015-06-10 14:58:30 -07:00
|
|
|
async Profile(nsCString aProfile);
|
|
|
|
|
2015-08-02 13:59:33 -07:00
|
|
|
/**
|
|
|
|
* Request graphics initialization information from the parent.
|
|
|
|
*/
|
|
|
|
sync GetGraphicsDeviceInitData()
|
|
|
|
returns (DeviceInitData aData);
|
|
|
|
|
2015-09-15 11:01:07 -07:00
|
|
|
sync GetDeviceStorageLocation(nsString type)
|
|
|
|
returns (nsString path);
|
|
|
|
|
2010-08-31 11:58:35 -07:00
|
|
|
both:
|
2013-11-06 09:21:15 -08:00
|
|
|
AsyncMessage(nsString aMessage, ClonedMessageData aData,
|
|
|
|
CpowEntry[] aCpows, Principal aPrincipal);
|
2009-07-10 23:33:10 -07:00
|
|
|
};
|
|
|
|
|
2009-09-09 15:00:14 -07:00
|
|
|
}
|
2012-08-29 05:24:48 -07:00
|
|
|
}
|