| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // The path to the user's desktop. | 33 // The path to the user's desktop. |
| 34 bool GetUserDesktop(FilePath* result); | 34 bool GetUserDesktop(FilePath* result); |
| 35 | 35 |
| 36 #if defined(OS_MACOSX) | 36 #if defined(OS_MACOSX) |
| 37 // The "versioned directory" is a directory in the browser .app bundle. It | 37 // The "versioned directory" is a directory in the browser .app bundle. It |
| 38 // contains the bulk of the application, except for the things that the system | 38 // contains the bulk of the application, except for the things that the system |
| 39 // requires be located at spepcific locations. The versioned directory is | 39 // requires be located at spepcific locations. The versioned directory is |
| 40 // in the .app at Contents/Versions/w.x.y.z. | 40 // in the .app at Contents/Versions/w.x.y.z. |
| 41 FilePath GetVersionedDirectory(); | 41 FilePath GetVersionedDirectory(); |
| 42 | 42 |
| 43 // This overrides the directory returned by |GetVersionedDirectory()|, to be |
| 44 // used when |GetVersionedDirectory()| can't automatically determine the proper |
| 45 // location. This is the case when the browser didn't load itself but by, e.g., |
| 46 // the app mode loader. This should be called before |ChromeMain()|. This takes |
| 47 // ownership of the object |path| and the caller must not delete it. |
| 48 void SetOverrideVersionedDirectory(const FilePath* path); |
| 49 |
| 43 // Most of the application is further contained within the framework. The | 50 // Most of the application is further contained within the framework. The |
| 44 // framework bundle is located within the versioned directory at a specific | 51 // framework bundle is located within the versioned directory at a specific |
| 45 // path. The only components in the versioned directory not included in the | 52 // path. The only components in the versioned directory not included in the |
| 46 // framework are things that also depend on the framework, such as the helper | 53 // framework are things that also depend on the framework, such as the helper |
| 47 // app bundle. | 54 // app bundle. |
| 48 FilePath GetFrameworkBundlePath(); | 55 FilePath GetFrameworkBundlePath(); |
| 49 #endif // OS_MACOSX | 56 #endif // OS_MACOSX |
| 50 | 57 |
| 51 } // namespace chrome | 58 } // namespace chrome |
| 52 | 59 |
| 53 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 60 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
| OLD | NEW |