| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INTERNAL_H_ | 5 #ifndef CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
| 6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // Most of the application is further contained within the framework. The | 73 // Most of the application is further contained within the framework. The |
| 74 // framework bundle is located within the versioned directory at a specific | 74 // framework bundle is located within the versioned directory at a specific |
| 75 // path. The only components in the versioned directory not included in the | 75 // path. The only components in the versioned directory not included in the |
| 76 // framework are things that also depend on the framework, such as the helper | 76 // framework are things that also depend on the framework, such as the helper |
| 77 // app bundle. | 77 // app bundle. |
| 78 base::FilePath GetFrameworkBundlePath(); | 78 base::FilePath GetFrameworkBundlePath(); |
| 79 | 79 |
| 80 // Get the local library directory. | 80 // Get the local library directory. |
| 81 bool GetLocalLibraryDirectory(base::FilePath* result); | 81 bool GetLocalLibraryDirectory(base::FilePath* result); |
| 82 | 82 |
| 83 // Get the user library directory. | |
| 84 bool GetUserLibraryDirectory(base::FilePath* result); | |
| 85 | |
| 86 // Get the user applications directory. | |
| 87 bool GetUserApplicationsDirectory(base::FilePath* result); | |
| 88 | |
| 89 // Get the global Application Support directory (under /Library/). | 83 // Get the global Application Support directory (under /Library/). |
| 90 bool GetGlobalApplicationSupportDirectory(base::FilePath* result); | 84 bool GetGlobalApplicationSupportDirectory(base::FilePath* result); |
| 91 | 85 |
| 92 // Returns the NSBundle for the outer browser application, even when running | 86 // Returns the NSBundle for the outer browser application, even when running |
| 93 // inside the helper. In unbundled applications, such as tests, returns nil. | 87 // inside the helper. In unbundled applications, such as tests, returns nil. |
| 94 NSBundle* OuterAppBundle(); | 88 NSBundle* OuterAppBundle(); |
| 95 | 89 |
| 96 // Get the user data directory for the Chrome browser bundle at |bundle|. | 90 // Get the user data directory for the Chrome browser bundle at |bundle|. |
| 97 // |bundle| should be the same value that would be returned from +[NSBundle | 91 // |bundle| should be the same value that would be returned from +[NSBundle |
| 98 // mainBundle] if Chrome were launched normaly. This is used by app shims, | 92 // mainBundle] if Chrome were launched normaly. This is used by app shims, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 109 | 103 |
| 110 #if defined(OS_WIN) | 104 #if defined(OS_WIN) |
| 111 // Populates |crash_dir| with the default crash dump location regardless of | 105 // Populates |crash_dir| with the default crash dump location regardless of |
| 112 // whether DIR_USER_DATA or DIR_CRASH_DUMPS has been overridden. | 106 // whether DIR_USER_DATA or DIR_CRASH_DUMPS has been overridden. |
| 113 bool GetDefaultCrashDumpLocation(base::FilePath* crash_dir); | 107 bool GetDefaultCrashDumpLocation(base::FilePath* crash_dir); |
| 114 #endif | 108 #endif |
| 115 | 109 |
| 116 } // namespace chrome | 110 } // namespace chrome |
| 117 | 111 |
| 118 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 112 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
| OLD | NEW |