OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_COMMON_CHROME_PATHS_H__ | 5 #ifndef CHROME_COMMON_CHROME_PATHS_H__ |
6 #define CHROME_COMMON_CHROME_PATHS_H__ | 6 #define CHROME_COMMON_CHROME_PATHS_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads. | 33 DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads. |
34 DIR_USER_DATA_TEMP, // A temp directory within DIR_USER_DATA. Use | 34 DIR_USER_DATA_TEMP, // A temp directory within DIR_USER_DATA. Use |
35 // this when a temporary file or directory will | 35 // this when a temporary file or directory will |
36 // be moved into the profile, to avoid issues | 36 // be moved into the profile, to avoid issues |
37 // moving across volumes. See crbug.com/13044 . | 37 // moving across volumes. See crbug.com/13044 . |
38 // Getting this path does not create it. Users | 38 // Getting this path does not create it. Users |
39 // should check that the path exists before | 39 // should check that the path exists before |
40 // using it. | 40 // using it. |
41 DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside. | 41 DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside. |
42 DIR_MEDIA_LIBS, // Directory where the Media libraries reside. | 42 DIR_MEDIA_LIBS, // Directory where the Media libraries reside. |
43 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 43 #if !defined(OS_MACOSX) && defined(OS_POSIX) |
44 DIR_POLICY_FILES, // Directory for system-wide read-only | 44 DIR_POLICY_FILES, // Directory for system-wide read-only |
45 // policy files that allow sys-admins | 45 // policy files that allow sys-admins |
46 // to set policies for chrome. This directory | 46 // to set policies for chrome. This directory |
47 // contains subdirectories. | 47 // contains subdirectories. |
48 #endif | 48 #endif |
49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
50 DIR_MANAGED_PREFS, // Directory that stores the managed prefs plist | 50 DIR_MANAGED_PREFS, // Directory that stores the managed prefs plist |
51 // files for the current user. | 51 // files for the current user. |
52 #endif | 52 #endif |
53 #if defined(OS_CHROMEOS) | 53 #if defined(OS_CHROMEOS) |
54 DIR_USER_EXTERNAL_EXTENSIONS, // Directory for per-user external extensions. | 54 DIR_USER_EXTERNAL_EXTENSIONS, // Directory for per-user external extensions. |
55 // Used for OEM customization on Chrome OS. | 55 // Used for OEM customization on Chrome OS. |
56 // Getting this path does not create it. | 56 // Getting this path does not create it. |
57 #endif | 57 #endif |
58 | 58 |
59 DIR_EXTERNAL_EXTENSIONS, // Directory where installer places .crx files. | 59 DIR_EXTERNAL_EXTENSIONS, // Directory where installer places .crx files. |
60 FILE_RESOURCE_MODULE, // Full path and filename of the module that | 60 FILE_RESOURCE_MODULE, // Full path and filename of the module that |
61 // contains embedded resources (version, | 61 // contains embedded resources (version, |
62 // strings, images, etc.). | 62 // strings, images, etc.). |
63 FILE_LOCAL_STATE, // Path and filename to the file in which | 63 FILE_LOCAL_STATE, // Path and filename to the file in which |
64 // machine/installation-specific state is saved. | 64 // machine/installation-specific state is saved. |
65 FILE_RECORDED_SCRIPT, // Full path to the script.log file that | 65 FILE_RECORDED_SCRIPT, // Full path to the script.log file that |
66 // contains recorded browser events for | 66 // contains recorded browser events for |
67 // playback. | 67 // playback. |
68 FILE_FLASH_PLUGIN, // Full path to the internal Flash plugin file. | 68 FILE_FLASH_PLUGIN, // Full path to the internal Flash plugin file. |
69 FILE_PEPPER_FLASH_PLUGIN, // Full path to the pepper Flash plugin file. | 69 FILE_PEPPER_FLASH_PLUGIN, // Full path to the pepper Flash plugin file. |
70 FILE_PDF_PLUGIN, // Full path to the internal PDF plugin file. | 70 FILE_PDF_PLUGIN, // Full path to the internal PDF plugin file. |
71 | |
72 #if defined(OS_POSIX) && !defined(OS_MACOSX) | |
73 FILE_NACL_HELPER, // Full path to Linux nacl_helper executable. | |
74 #endif | |
75 FILE_NACL_PLUGIN, // Full path to the internal NaCl plugin file. | 71 FILE_NACL_PLUGIN, // Full path to the internal NaCl plugin file. |
76 FILE_LIBAVCODEC, // Full path to libavcodec media decoding | 72 FILE_LIBAVCODEC, // Full path to libavcodec media decoding |
77 // library. | 73 // library. |
78 FILE_LIBAVFORMAT, // Full path to libavformat media parsing | 74 FILE_LIBAVFORMAT, // Full path to libavformat media parsing |
79 // library. | 75 // library. |
80 FILE_LIBAVUTIL, // Full path to libavutil media utility library. | 76 FILE_LIBAVUTIL, // Full path to libavutil media utility library. |
81 FILE_RESOURCES_PACK, // Full path to the .pak file containing | 77 FILE_RESOURCES_PACK, // Full path to the .pak file containing |
82 // binary data (e.g., html files and images | 78 // binary data (e.g., html files and images |
83 // used by interal pages). | 79 // used by interal pages). |
84 #if defined(OS_CHROMEOS) | 80 #if defined(OS_CHROMEOS) |
85 FILE_CHROMEOS_API, // Full path to chrome os api shared object. | 81 FILE_CHROMEOS_API, // Full path to chrome os api shared object. |
86 #endif | 82 #endif |
87 | 83 |
88 // Valid only in development environment; TODO(darin): move these | 84 // Valid only in development environment; TODO(darin): move these |
89 DIR_TEST_DATA, // Directory where unit test data resides. | 85 DIR_TEST_DATA, // Directory where unit test data resides. |
90 DIR_TEST_TOOLS, // Directory where unit test tools reside. | 86 DIR_TEST_TOOLS, // Directory where unit test tools reside. |
91 | 87 |
92 PATH_END | 88 PATH_END |
93 }; | 89 }; |
94 | 90 |
95 // Call once to register the provider for the path keys defined above. | 91 // Call once to register the provider for the path keys defined above. |
96 void RegisterPathProvider(); | 92 void RegisterPathProvider(); |
97 | 93 |
98 } // namespace chrome | 94 } // namespace chrome |
99 | 95 |
100 #endif // CHROME_COMMON_CHROME_PATHS_H__ | 96 #endif // CHROME_COMMON_CHROME_PATHS_H__ |
OLD | NEW |