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 : */
|
2009-07-10 23:33:10 -07: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-09 15:00:14 -07:00
|
|
|
* The Original Code is Mozilla Content App.
|
2009-07-10 23:33:10 -07:00
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
2009-09-09 15:00:14 -07:00
|
|
|
* The Mozilla Foundation.
|
2009-07-10 23:33:10 -07: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-07-19 11:33:33 -07:00
|
|
|
include protocol PBrowser;
|
2010-04-27 00:12:38 -07:00
|
|
|
include protocol PTestShell;
|
|
|
|
include protocol PNecko;
|
2009-09-09 15:00:14 -07:00
|
|
|
|
|
|
|
include "mozilla/TabTypes.h";
|
2010-03-10 21:33:00 -08:00
|
|
|
include "mozilla/chrome/RegistryMessageUtils.h";
|
2010-07-15 07:04:25 -07:00
|
|
|
include "mozilla/net/NeckoMessageUtils.h";
|
2010-03-10 21:33:00 -08:00
|
|
|
|
|
|
|
using ChromePackage;
|
|
|
|
using ResourceMapping;
|
|
|
|
using OverrideMapping;
|
2010-07-15 07:04:25 -07:00
|
|
|
using IPC::URI;
|
2009-09-09 15:00:14 -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
|
|
|
|
2010-07-19 11:33:33 -07:00
|
|
|
rpc protocol PContent
|
2009-07-10 23:33:10 -07:00
|
|
|
{
|
2010-07-19 11:33:33 -07:00
|
|
|
manages PBrowser;
|
2009-09-09 15:00:14 -07:00
|
|
|
manages PTestShell;
|
2009-08-18 12:05:15 -07:00
|
|
|
manages PNecko;
|
2009-08-25 16:07:22 -07:00
|
|
|
|
2009-08-12 11:31:48 -07:00
|
|
|
child:
|
2010-07-19 11:33:33 -07:00
|
|
|
PBrowser(PRUint32 chromeFlags);
|
2009-08-25 16:07:22 -07:00
|
|
|
|
2009-09-09 15:00:14 -07:00
|
|
|
PTestShell();
|
2009-08-25 16:07:22 -07:00
|
|
|
|
2010-03-10 21:33:00 -08:00
|
|
|
RegisterChrome(ChromePackage[] packages, ResourceMapping[] resources,
|
|
|
|
OverrideMapping[] overrides);
|
|
|
|
|
2010-05-11 05:44:12 -07:00
|
|
|
async SetOffline(PRBool offline);
|
|
|
|
|
2010-07-02 08:50:41 -07:00
|
|
|
async NotifyVisited(URI uri);
|
|
|
|
|
2010-05-25 17:13:47 -07:00
|
|
|
NotifyRemotePrefObserver(nsCString aDomain);
|
|
|
|
|
2009-08-18 12:05:15 -07:00
|
|
|
parent:
|
|
|
|
PNecko();
|
2010-05-25 17:13:47 -07:00
|
|
|
|
2010-07-15 07:04:25 -07:00
|
|
|
// Services remoting
|
|
|
|
|
2010-07-02 08:50:41 -07:00
|
|
|
async StartVisitedQuery(URI uri);
|
2010-07-02 08:50:24 -07:00
|
|
|
async VisitURI(URI uri, URI referrer, PRUint32 flags);
|
2010-07-02 08:53:42 -07:00
|
|
|
async SetURITitle(URI uri, nsString title);
|
2010-07-02 08:50:41 -07:00
|
|
|
|
2010-08-10 10:14:45 -07:00
|
|
|
async LoadURIExternal(URI uri);
|
|
|
|
|
2010-07-15 07:04:25 -07:00
|
|
|
// PrefService messages
|
2010-05-25 17:13:47 -07:00
|
|
|
sync GetPrefType(nsCString prefName) returns (PRInt32 retValue, nsresult rv);
|
|
|
|
sync GetBoolPref(nsCString prefName) returns (PRBool retValue, nsresult rv);
|
|
|
|
sync GetIntPref(nsCString prefName) returns (PRInt32 retValue, nsresult rv);
|
|
|
|
sync GetCharPref(nsCString prefName) returns (nsCString retValue, nsresult rv);
|
2010-05-26 12:29:15 -07:00
|
|
|
sync GetPrefLocalizedString(nsCString prefName) returns (nsString retValue, nsresult rv);
|
2010-05-25 17:13:47 -07:00
|
|
|
sync PrefHasUserValue(nsCString prefName) returns (PRBool retValue, nsresult rv);
|
|
|
|
sync PrefIsLocked(nsCString prefName) returns (PRBool retValue, nsresult rv);
|
2010-05-28 11:09:15 -07:00
|
|
|
sync GetChildList(nsCString domain) returns (nsCString[] list, nsresult rv);
|
2010-07-15 07:04:25 -07:00
|
|
|
|
|
|
|
// PermissionsManager messages
|
|
|
|
sync TestPermission(URI uri, nsCString type, PRBool exact) returns (PRUint32 retValue);
|
2010-08-05 11:11:32 -07:00
|
|
|
NotifyIME(int aType, int aState);
|
|
|
|
NotifyIMEChange(nsString aText, PRUint32 aTextLen,
|
|
|
|
int aStart, int aEnd, int aNewEnd);
|
2009-07-10 23:33:10 -07:00
|
|
|
};
|
|
|
|
|
2009-09-09 15:00:14 -07:00
|
|
|
}
|
|
|
|
}
|