Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef nsCPrefetchService_h__ |
michael@0 | 6 | #define nsCPrefetchService_h__ |
michael@0 | 7 | |
michael@0 | 8 | #include "nsIPrefetchService.h" |
michael@0 | 9 | |
michael@0 | 10 | /** |
michael@0 | 11 | * nsPrefetchService : nsIPrefetchService |
michael@0 | 12 | */ |
michael@0 | 13 | #define NS_PREFETCHSERVICE_CONTRACTID \ |
michael@0 | 14 | "@mozilla.org/prefetch-service;1" |
michael@0 | 15 | #define NS_PREFETCHSERVICE_CID \ |
michael@0 | 16 | { /* 6b8bdffc-3394-417d-be83-a81b7c0f63bf */ \ |
michael@0 | 17 | 0x6b8bdffc, \ |
michael@0 | 18 | 0x3394, \ |
michael@0 | 19 | 0x417d, \ |
michael@0 | 20 | {0xbe, 0x83, 0xa8, 0x1b, 0x7c, 0x0f, 0x63, 0xbf} \ |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | /** |
michael@0 | 24 | * nsOfflineCacheUpdateService : nsIOfflineCacheUpdateService |
michael@0 | 25 | */ |
michael@0 | 26 | |
michael@0 | 27 | #define NS_OFFLINECACHEUPDATESERVICE_CONTRACTID \ |
michael@0 | 28 | "@mozilla.org/offlinecacheupdate-service;1" |
michael@0 | 29 | #define NS_OFFLINECACHEUPDATESERVICE_CID \ |
michael@0 | 30 | { /* ec06f3fc-70db-4ecd-94e0-a6e91ca44d8a */ \ |
michael@0 | 31 | 0xec06f3fc, \ |
michael@0 | 32 | 0x70db, \ |
michael@0 | 33 | 0x4ecd , \ |
michael@0 | 34 | {0x94, 0xe0, 0xa6, 0xe9, 0x1c, 0xa4, 0x4d, 0x8a} \ |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | /** |
michael@0 | 38 | * nsOfflineCacheUpdate : nsIOfflineCacheUpdate |
michael@0 | 39 | */ |
michael@0 | 40 | |
michael@0 | 41 | #define NS_OFFLINECACHEUPDATE_CONTRACTID \ |
michael@0 | 42 | "@mozilla.org/offlinecacheupdate;1" |
michael@0 | 43 | #define NS_OFFLINECACHEUPDATE_CID \ |
michael@0 | 44 | { /* e56f5e01-c7cc-4675-a9d7-b8f1e4127295 */ \ |
michael@0 | 45 | 0xe56f5e01, \ |
michael@0 | 46 | 0xc7cc, \ |
michael@0 | 47 | 0x4675, \ |
michael@0 | 48 | {0xa9, 0xd7, 0xb8, 0xf1, 0xe4, 0x12, 0x72, 0x95} \ |
michael@0 | 49 | } |
michael@0 | 50 | |
michael@0 | 51 | |
michael@0 | 52 | #endif // !nsCPrefetchService_h__ |