Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | /** |
michael@0 | 9 | * A datasource that may load asynchronously |
michael@0 | 10 | */ |
michael@0 | 11 | [scriptable, uuid(1D297320-27F7-11d3-BE01-000064657374)] |
michael@0 | 12 | interface nsIRDFRemoteDataSource : nsISupports |
michael@0 | 13 | { |
michael@0 | 14 | /** |
michael@0 | 15 | * This value is <code>true</code> when the datasource has |
michael@0 | 16 | * fully loaded itself. |
michael@0 | 17 | */ |
michael@0 | 18 | readonly attribute boolean loaded; |
michael@0 | 19 | |
michael@0 | 20 | /** |
michael@0 | 21 | * Specify the URI for the data source: this is the prefix |
michael@0 | 22 | * that will be used to register the data source in the |
michael@0 | 23 | * data source registry. |
michael@0 | 24 | * @param aURI the URI to load |
michael@0 | 25 | */ |
michael@0 | 26 | void Init(in string aURI); |
michael@0 | 27 | |
michael@0 | 28 | /** |
michael@0 | 29 | * Refresh the remote datasource, re-loading its contents |
michael@0 | 30 | * from the URI. |
michael@0 | 31 | * |
michael@0 | 32 | * @param aBlocking If <code>true</code>, the call will block |
michael@0 | 33 | * until the datasource has completely reloaded. |
michael@0 | 34 | */ |
michael@0 | 35 | void Refresh(in boolean aBlocking); |
michael@0 | 36 | |
michael@0 | 37 | /** |
michael@0 | 38 | * Request that a data source write its contents out to |
michael@0 | 39 | * permanent storage, if applicable. |
michael@0 | 40 | */ |
michael@0 | 41 | void Flush(); |
michael@0 | 42 | void FlushTo(in string aURI); |
michael@0 | 43 | }; |
michael@0 | 44 |