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++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */ |
michael@0 | 2 | /* vim: set sw=4 ts=8 et tw=80 ft=cpp : */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | include protocol PContent; |
michael@0 | 8 | |
michael@0 | 9 | namespace mozilla { |
michael@0 | 10 | namespace dom { |
michael@0 | 11 | |
michael@0 | 12 | /* This protocol bridges async access to the database thread running on the parent process |
michael@0 | 13 | * and caches running on the child process. |
michael@0 | 14 | */ |
michael@0 | 15 | sync protocol PStorage |
michael@0 | 16 | { |
michael@0 | 17 | manager PContent; |
michael@0 | 18 | |
michael@0 | 19 | parent: |
michael@0 | 20 | async __delete__(); |
michael@0 | 21 | |
michael@0 | 22 | sync Preload(nsCString scope, uint32_t alreadyLoadedCount) |
michael@0 | 23 | returns (nsString[] keys, nsString[] values, nsresult rv); |
michael@0 | 24 | |
michael@0 | 25 | async AsyncPreload(nsCString scope, bool priority); |
michael@0 | 26 | async AsyncGetUsage(nsCString scope); |
michael@0 | 27 | async AsyncAddItem(nsCString scope, nsString key, nsString value); |
michael@0 | 28 | async AsyncUpdateItem(nsCString scope, nsString key, nsString value); |
michael@0 | 29 | async AsyncRemoveItem(nsCString scope, nsString key); |
michael@0 | 30 | async AsyncClear(nsCString scope); |
michael@0 | 31 | async AsyncFlush(); |
michael@0 | 32 | |
michael@0 | 33 | child: |
michael@0 | 34 | async Observe(nsCString topic, nsCString scopePrefix); |
michael@0 | 35 | async ScopesHavingData(nsCString[] scopes); |
michael@0 | 36 | async LoadItem(nsCString scope, nsString key, nsString value); |
michael@0 | 37 | async LoadDone(nsCString scope, nsresult rv); |
michael@0 | 38 | async LoadUsage(nsCString scope, int64_t usage); |
michael@0 | 39 | async Error(nsresult rv); |
michael@0 | 40 | }; |
michael@0 | 41 | |
michael@0 | 42 | } |
michael@0 | 43 | } |