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 | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| michael@0 | 2 | // Use of this source code is governed by a BSD-style license that can be |
| michael@0 | 3 | // found in the LICENSE file. |
| michael@0 | 4 | |
| michael@0 | 5 | #ifndef BASE_BASE_PATHS_LINUX_H_ |
| michael@0 | 6 | #define BASE_BASE_PATHS_LINUX_H_ |
| michael@0 | 7 | |
| michael@0 | 8 | // This file declares Linux-specific path keys for the base module. |
| michael@0 | 9 | // These can be used with the PathService to access various special |
| michael@0 | 10 | // directories and files. |
| michael@0 | 11 | |
| michael@0 | 12 | namespace base { |
| michael@0 | 13 | |
| michael@0 | 14 | enum { |
| michael@0 | 15 | PATH_LINUX_START = 200, |
| michael@0 | 16 | |
| michael@0 | 17 | FILE_EXE, // Path and filename of the current executable. |
| michael@0 | 18 | FILE_MODULE, // Path and filename of the module containing the code for the |
| michael@0 | 19 | // PathService (which could differ from FILE_EXE if the |
| michael@0 | 20 | // PathService were compiled into a shared object, for example). |
| michael@0 | 21 | DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful |
| michael@0 | 22 | // for tests that need to locate various resources. It |
| michael@0 | 23 | // should not be used outside of test code. |
| michael@0 | 24 | |
| michael@0 | 25 | PATH_LINUX_END |
| michael@0 | 26 | }; |
| michael@0 | 27 | |
| michael@0 | 28 | } // namespace base |
| michael@0 | 29 | |
| michael@0 | 30 | #endif // BASE_BASE_PATHS_LINUX_H_ |