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

Side by Side Diff: chrome/common/chrome_paths_internal.h

Issue 2066004: Mac: app mode loader (shim). (Closed)
Patch Set: more changes per mark + merged ToT Created 10 years, 7 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
« no previous file with comments | « chrome/common/app_mode_common_mac.mm ('k') | chrome/common/chrome_paths_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/common/app_mode_common_mac.mm ('k') | chrome/common/chrome_paths_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698