2009-09-10 02:00:14 +04:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8 -*- */
|
2009-08-18 23:05:15 +04:00
|
|
|
/* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
|
2009-07-11 10:33:10 +04:00
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
2009-09-10 02:00:14 +04:00
|
|
|
* The Original Code is Mozilla Content App.
|
2009-07-11 10:33:10 +04:00
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
2009-09-10 02:00:14 +04:00
|
|
|
* The Mozilla Foundation.
|
2009-07-11 10:33:10 +04:00
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2009
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
2010-11-17 07:14:19 +03:00
|
|
|
include protocol PAudio;
|
2010-07-19 22:33:33 +04:00
|
|
|
include protocol PBrowser;
|
2010-04-27 11:12:38 +04:00
|
|
|
include protocol PTestShell;
|
|
|
|
include protocol PNecko;
|
2010-09-16 02:55:08 +04:00
|
|
|
include protocol PExternalHelperApp;
|
2010-11-19 04:15:23 +03:00
|
|
|
include protocol PStorage;
|
2009-09-10 02:00:14 +04:00
|
|
|
|
2010-03-11 08:33:00 +03:00
|
|
|
include "mozilla/chrome/RegistryMessageUtils.h";
|
2010-07-15 18:04:25 +04:00
|
|
|
include "mozilla/net/NeckoMessageUtils.h";
|
2010-03-11 08:33:00 +03:00
|
|
|
|
2010-09-21 08:16:37 +04:00
|
|
|
include "nsGeoPositionIPCSerialiser.h";
|
2010-10-20 00:35:08 +04:00
|
|
|
include "PPrefTuple.h";
|
2010-09-21 08:16:37 +04:00
|
|
|
|
|
|
|
using GeoPosition;
|
2010-10-20 00:35:08 +04:00
|
|
|
using PrefTuple;
|
2010-09-21 08:16:37 +04:00
|
|
|
|
2010-03-11 08:33:00 +03:00
|
|
|
using ChromePackage;
|
|
|
|
using ResourceMapping;
|
|
|
|
using OverrideMapping;
|
2010-07-15 18:04:25 +04:00
|
|
|
using IPC::URI;
|
2010-10-09 22:07:38 +04:00
|
|
|
using IPC::Permission;
|
2010-11-19 04:15:23 +03:00
|
|
|
using mozilla::null_t;
|
2009-09-10 02:00:14 +04:00
|
|
|
|
2009-07-11 10:33:10 +04:00
|
|
|
namespace mozilla {
|
2009-09-10 02:00:14 +04:00
|
|
|
namespace dom {
|
2009-07-11 10:33:10 +04:00
|
|
|
|
2010-11-19 04:15:23 +03:00
|
|
|
// Data required to clone an existing DOMStorageImpl in the parent
|
|
|
|
struct StorageClone
|
|
|
|
{
|
|
|
|
// Existing cross-process storage actor to clone
|
|
|
|
PStorage actor;
|
|
|
|
// Result of calling IsCallerSecure() in the child
|
|
|
|
bool callerSecure;
|
|
|
|
};
|
|
|
|
|
|
|
|
// When creating a new PStorage protocol, an existing one can be
|
|
|
|
// cloned (see nsDOMStorage2::Clone)
|
|
|
|
union StorageConstructData
|
|
|
|
{
|
|
|
|
null_t;
|
|
|
|
StorageClone;
|
|
|
|
};
|
|
|
|
|
2010-07-19 22:33:33 +04:00
|
|
|
rpc protocol PContent
|
2009-07-11 10:33:10 +04:00
|
|
|
{
|
2010-11-17 07:14:19 +03:00
|
|
|
manages PAudio;
|
2010-07-19 22:33:33 +04:00
|
|
|
manages PBrowser;
|
2009-09-10 02:00:14 +04:00
|
|
|
manages PTestShell;
|
2009-08-18 23:05:15 +04:00
|
|
|
manages PNecko;
|
2010-09-16 02:55:08 +04:00
|
|
|
manages PExternalHelperApp;
|
2010-11-19 04:15:23 +03:00
|
|
|
manages PStorage;
|
2009-08-26 03:07:22 +04:00
|
|
|
|
2009-08-12 22:31:48 +04:00
|
|
|
child:
|
2010-07-19 22:33:33 +04:00
|
|
|
PBrowser(PRUint32 chromeFlags);
|
2009-08-26 03:07:22 +04:00
|
|
|
|
2009-09-10 02:00:14 +04:00
|
|
|
PTestShell();
|
2009-08-26 03:07:22 +04:00
|
|
|
|
2010-03-11 08:33:00 +03:00
|
|
|
RegisterChrome(ChromePackage[] packages, ResourceMapping[] resources,
|
|
|
|
OverrideMapping[] overrides);
|
|
|
|
|
2010-05-11 16:44:12 +04:00
|
|
|
async SetOffline(PRBool offline);
|
|
|
|
|
2010-07-02 19:50:41 +04:00
|
|
|
async NotifyVisited(URI uri);
|
|
|
|
|
2010-10-20 00:35:08 +04:00
|
|
|
PreferenceUpdate(PrefTuple pref);
|
2010-05-26 04:13:47 +04:00
|
|
|
|
2010-09-15 20:44:57 +04:00
|
|
|
NotifyAlertsObserver(nsCString topic, nsString data);
|
|
|
|
|
2010-09-21 08:16:37 +04:00
|
|
|
GeolocationUpdate(GeoPosition somewhere);
|
|
|
|
|
2010-10-09 22:07:38 +04:00
|
|
|
// nsIPermissionManager messages
|
|
|
|
AddPermission(Permission permission);
|
|
|
|
|
2010-11-05 20:43:13 +03:00
|
|
|
AccelerationChanged(double x, double y, double z);
|
|
|
|
|
2009-08-18 23:05:15 +04:00
|
|
|
parent:
|
|
|
|
PNecko();
|
2010-11-19 04:15:23 +03:00
|
|
|
|
|
|
|
PStorage(StorageConstructData data);
|
2010-05-26 04:13:47 +04:00
|
|
|
|
2010-11-17 07:14:19 +03:00
|
|
|
PAudio(PRInt32 aNumChannels, PRInt32 aRate, PRInt32 aFormat);
|
|
|
|
|
2010-07-15 18:04:25 +04:00
|
|
|
// Services remoting
|
|
|
|
|
2010-07-02 19:50:41 +04:00
|
|
|
async StartVisitedQuery(URI uri);
|
2010-07-02 19:50:24 +04:00
|
|
|
async VisitURI(URI uri, URI referrer, PRUint32 flags);
|
2010-07-02 19:53:42 +04:00
|
|
|
async SetURITitle(URI uri, nsString title);
|
2010-10-20 19:19:24 +04:00
|
|
|
|
|
|
|
// filepicker remoting
|
|
|
|
sync ShowFilePicker(PRInt16 mode, PRInt16 selectedType,
|
|
|
|
nsString title, nsString defaultFile, nsString defaultExtension,
|
|
|
|
nsString[] filters, nsString[] filterNames)
|
|
|
|
returns (nsString[] files, PRInt16 retValue, nsresult result);
|
2010-07-02 19:50:41 +04:00
|
|
|
|
2010-08-10 21:14:45 +04:00
|
|
|
async LoadURIExternal(URI uri);
|
|
|
|
|
2010-10-20 00:35:08 +04:00
|
|
|
// PrefService message
|
2010-11-09 05:49:00 +03:00
|
|
|
sync ReadPrefsArray() returns (PrefTuple[] retValue);
|
2010-07-15 18:04:25 +04:00
|
|
|
|
2010-08-31 22:58:35 +04:00
|
|
|
sync SyncMessage(nsString aMessage, nsString aJSON)
|
|
|
|
returns (nsString[] retval);
|
|
|
|
|
2010-09-15 20:44:57 +04:00
|
|
|
ShowAlertNotification(nsString imageUrl,
|
|
|
|
nsString title,
|
|
|
|
nsString text,
|
|
|
|
PRBool textClickable,
|
|
|
|
nsString cookie,
|
|
|
|
nsString name);
|
|
|
|
|
2010-09-16 02:55:08 +04:00
|
|
|
PExternalHelperApp(URI uri, nsCString aMimeContentType,
|
|
|
|
nsCString aContentDisposition, bool aForceSave,
|
2010-11-21 22:21:59 +03:00
|
|
|
PRInt64 aContentLength, URI aReferrer);
|
2010-09-21 08:16:37 +04:00
|
|
|
|
2010-11-05 20:43:13 +03:00
|
|
|
AddGeolocationListener();
|
|
|
|
RemoveGeolocationListener();
|
|
|
|
AddAccelerometerListener();
|
|
|
|
RemoveAccelerometerListener();
|
2010-09-16 02:55:08 +04:00
|
|
|
|
2010-09-24 05:39:32 +04:00
|
|
|
ConsoleMessage(nsString message);
|
|
|
|
ScriptError(nsString message, nsString sourceName, nsString sourceLine,
|
|
|
|
PRUint32 lineNumber, PRUint32 colNumber, PRUint32 flags,
|
|
|
|
nsCString category);
|
|
|
|
|
2010-10-09 22:07:38 +04:00
|
|
|
// nsIPermissionManager messages
|
|
|
|
sync ReadPermissions() returns (Permission[] permissions);
|
|
|
|
|
2010-08-31 22:58:35 +04:00
|
|
|
both:
|
|
|
|
AsyncMessage(nsString aMessage, nsString aJSON);
|
|
|
|
|
2009-07-11 10:33:10 +04:00
|
|
|
};
|
|
|
|
|
2009-09-10 02:00:14 +04:00
|
|
|
}
|
|
|
|
}
|