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) 2012 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_WIN_H__ |
michael@0 | 6 | #define BASE_BASE_PATHS_WIN_H__ |
michael@0 | 7 | |
michael@0 | 8 | // This file declares windows-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_WIN_START = 100, |
michael@0 | 16 | |
michael@0 | 17 | DIR_WINDOWS, // Windows directory, usually "c:\windows" |
michael@0 | 18 | DIR_SYSTEM, // Usually c:\windows\system32" |
michael@0 | 19 | DIR_PROGRAM_FILES, // Usually c:\program files |
michael@0 | 20 | DIR_PROGRAM_FILESX86, // Usually c:\program files or c:\program files (x86) |
michael@0 | 21 | |
michael@0 | 22 | DIR_IE_INTERNET_CACHE, // Temporary Internet Files directory. |
michael@0 | 23 | DIR_COMMON_START_MENU, // Usually "C:\Documents and Settings\All Users\ |
michael@0 | 24 | // Start Menu\Programs" |
michael@0 | 25 | DIR_START_MENU, // Usually "C:\Documents and Settings\<user>\ |
michael@0 | 26 | // Start Menu\Programs" |
michael@0 | 27 | DIR_APP_DATA, // Application Data directory under the user profile. |
michael@0 | 28 | DIR_PROFILE, // Usually "C:\Documents and settings\<user>. |
michael@0 | 29 | DIR_LOCAL_APP_DATA_LOW, // Local AppData directory for low integrity level. |
michael@0 | 30 | DIR_LOCAL_APP_DATA, // "Local Settings\Application Data" directory under |
michael@0 | 31 | // the user profile. |
michael@0 | 32 | DIR_COMMON_APP_DATA, // W2K, XP, W2K3: "C:\Documents and Settings\ |
michael@0 | 33 | // All Users\Application Data". |
michael@0 | 34 | // Vista, W2K8 and above: "C:\ProgramData". |
michael@0 | 35 | DIR_APP_SHORTCUTS, // Where tiles on the start screen are stored, only |
michael@0 | 36 | // for Windows 8. Maps to "Local\AppData\Microsoft\ |
michael@0 | 37 | // Windows\Application Shortcuts\". |
michael@0 | 38 | DIR_COMMON_DESKTOP, // Directory for the common desktop (visible |
michael@0 | 39 | // on all user's Desktop). |
michael@0 | 40 | DIR_USER_QUICK_LAUNCH, // Directory for the quick launch shortcuts. |
michael@0 | 41 | DIR_DEFAULT_USER_QUICK_LAUNCH, // Directory for the quick launch shortcuts |
michael@0 | 42 | // of the Default user. |
michael@0 | 43 | DIR_TASKBAR_PINS, // Directory for the shortcuts pinned to taskbar via |
michael@0 | 44 | // base::win::TaskbarPinShortcutLink(). |
michael@0 | 45 | |
michael@0 | 46 | PATH_WIN_END |
michael@0 | 47 | }; |
michael@0 | 48 | |
michael@0 | 49 | } // namespace base |
michael@0 | 50 | |
michael@0 | 51 | #endif // BASE_BASE_PATHS_WIN_H__ |