Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: chromeos/chromeos_paths.h

Issue 2343983004: Add PPDProvider barebones implementation and associated cache skeleton. (Closed)
Patch Set: Initial PPDProvider/PPDCache implementation. Also, add associated unittests. This doesn't plumb th… Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_CHROMEOS_PATHS_H_ 5 #ifndef CHROMEOS_CHROMEOS_PATHS_H_
6 #define CHROMEOS_CHROMEOS_PATHS_H_ 6 #define CHROMEOS_CHROMEOS_PATHS_H_
7 7
8 #include "chromeos/chromeos_export.h" 8 #include "chromeos/chromeos_export.h"
9 9
10 namespace base { 10 namespace base {
11 class FilePath; 11 class FilePath;
12 } 12 }
13 13
14 // This file declares path keys for the chromeos module. These can be used with 14 // This file declares path keys for the chromeos module. These can be used with
15 // the PathService to access various special directories and files. 15 // the PathService to access various special directories and files.
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 enum { 19 enum {
20 PATH_START = 7000, 20 PATH_START = 7000,
21 21
22 FILE_DEFAULT_APP_ORDER, // Full path to the json file that defines the 22 FILE_DEFAULT_APP_ORDER, // Full path to the json file that defines the
23 // default app order. 23 // default app order.
24 DIR_USER_POLICY_KEYS, // Directory where the session_manager stores 24 DIR_USER_POLICY_KEYS, // Directory where the session_manager stores
25 // the user policy keys. 25 // the user policy keys.
26 FILE_OWNER_KEY, // Full path to the owner key file. 26 FILE_OWNER_KEY, // Full path to the owner key file.
27 FILE_INSTALL_ATTRIBUTES, // Full path to the install attributes file. 27 FILE_INSTALL_ATTRIBUTES, // Full path to the install attributes file.
28 FILE_MACHINE_INFO, // Full path to machine hardware info file. 28 FILE_MACHINE_INFO, // Full path to machine hardware info file.
29 FILE_UPTIME, // Full path to the file via which the kernel 29 FILE_UPTIME, // Full path to the file via which the kernel
30 // exposes the current device uptime. 30 // exposes the current device uptime.
31 FILE_UPDATE_REBOOT_NEEDED_UPTIME, // Full path to a file in which Chrome can 31 FILE_UPDATE_REBOOT_NEEDED_UPTIME, // Full path to a file in which Chrome can
32 // store the uptime at which an update 32 // store the uptime at which an update
33 // became necessary. The file should be 33 // became necessary. The file should be
34 // cleared on boot. 34 // cleared on boot.
35 DIR_DEVICE_LOCAL_ACCOUNT_EXTENSIONS, // Directory under which a cache of 35 DIR_DEVICE_LOCAL_ACCOUNT_EXTENSIONS, // Directory under which a cache of
36 // force-installed extensions is 36 // force-installed extensions is
37 // maintained for each device-local 37 // maintained for each device-local
38 // account. 38 // account.
39 DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA, // Directory where external data 39 DIR_DEVICE_LOCAL_ACCOUNT_EXTERNAL_DATA, // Directory where external data
40 // referenced by policies is cached 40 // referenced by policies is cached
41 // for device-local accounts. 41 // for device-local accounts.
42 DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY, // Directory where policy for 42 DIR_DEVICE_LOCAL_ACCOUNT_COMPONENT_POLICY, // Directory where policy for
43 // components is stored for 43 // components is stored for
44 // device-local accounts. 44 // device-local accounts.
45 // Currently this is used for 45 // Currently this is used for
46 // policy for extensions. 46 // policy for extensions.
47 DIR_DEVICE_DISPLAY_PROFILES, // Destination directory for system display 47 DIR_DEVICE_DISPLAY_PROFILES, // Destination directory for system display
48 // profiles downloaded from Quirks Server. 48 // profiles downloaded from Quirks Server.
49 DIR_DEVICE_COLOR_CALIBRATION_PROFILES, // Directory where system color 49 DIR_DEVICE_COLOR_CALIBRATION_PROFILES, // Directory where system color
50 // calibration files can be found. 50 // calibration files can be found.
51 DIR_DEVICE_EXTENSION_LOCAL_CACHE, // Directory where extension local cache 51 DIR_DEVICE_EXTENSION_LOCAL_CACHE, // Directory where extension local cache
52 // is stored. 52 // is stored.
53 DIR_PRINTER_DRIVERS_CACHE, // Directory where ppds previously used
skau 2016/10/07 16:29:06 It looks like this file is for chromeos system fol
Carlson 2016/10/14 19:28:56 Done.
54 // for printing are stored.
53 PATH_END 55 PATH_END
54 }; 56 };
55 57
56 // Call once to register the provider for the path keys defined above. 58 // Call once to register the provider for the path keys defined above.
57 CHROMEOS_EXPORT void RegisterPathProvider(); 59 CHROMEOS_EXPORT void RegisterPathProvider();
58 60
59 // Overrides some of the paths listed above so that those files can be used 61 // Overrides some of the paths listed above so that those files can be used
60 // when not running on ChromeOS. The stubs files will be relative to 62 // when not running on ChromeOS. The stubs files will be relative to
61 // |stubs_dir|. It is not valid to call this when running on ChromeOS. 63 // |stubs_dir|. It is not valid to call this when running on ChromeOS.
62 CHROMEOS_EXPORT void RegisterStubPathOverrides(const base::FilePath& stubs_dir); 64 CHROMEOS_EXPORT void RegisterStubPathOverrides(const base::FilePath& stubs_dir);
63 65
64 } // namespace chromeos 66 } // namespace chromeos
65 67
66 #endif // CHROMEOS_CHROMEOS_PATHS_H_ 68 #endif // CHROMEOS_CHROMEOS_PATHS_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/chromeos_paths.cc » ('j') | chromeos/printing/ppd_cache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698