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.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsCPrefetchService_h__
6 #define nsCPrefetchService_h__
8 #include "nsIPrefetchService.h"
10 /**
11 * nsPrefetchService : nsIPrefetchService
12 */
13 #define NS_PREFETCHSERVICE_CONTRACTID \
14 "@mozilla.org/prefetch-service;1"
15 #define NS_PREFETCHSERVICE_CID \
16 { /* 6b8bdffc-3394-417d-be83-a81b7c0f63bf */ \
17 0x6b8bdffc, \
18 0x3394, \
19 0x417d, \
20 {0xbe, 0x83, 0xa8, 0x1b, 0x7c, 0x0f, 0x63, 0xbf} \
21 }
23 /**
24 * nsOfflineCacheUpdateService : nsIOfflineCacheUpdateService
25 */
27 #define NS_OFFLINECACHEUPDATESERVICE_CONTRACTID \
28 "@mozilla.org/offlinecacheupdate-service;1"
29 #define NS_OFFLINECACHEUPDATESERVICE_CID \
30 { /* ec06f3fc-70db-4ecd-94e0-a6e91ca44d8a */ \
31 0xec06f3fc, \
32 0x70db, \
33 0x4ecd , \
34 {0x94, 0xe0, 0xa6, 0xe9, 0x1c, 0xa4, 0x4d, 0x8a} \
35 }
37 /**
38 * nsOfflineCacheUpdate : nsIOfflineCacheUpdate
39 */
41 #define NS_OFFLINECACHEUPDATE_CONTRACTID \
42 "@mozilla.org/offlinecacheupdate;1"
43 #define NS_OFFLINECACHEUPDATE_CID \
44 { /* e56f5e01-c7cc-4675-a9d7-b8f1e4127295 */ \
45 0xe56f5e01, \
46 0xc7cc, \
47 0x4675, \
48 {0xa9, 0xd7, 0xb8, 0xf1, 0xe4, 0x12, 0x72, 0x95} \
49 }
52 #endif // !nsCPrefetchService_h__