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

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

Issue 11418005: Get a minimal unit_tests target building and running for iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@chrome-gyp-ios-support
Patch Set: Better ifdefing in chrome_paths Created 8 years, 1 month 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/chrome_paths.cc ('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) 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Gets the path to the user's music directory. 59 // Gets the path to the user's music directory.
60 bool GetUserMusicDirectory(FilePath* result); 60 bool GetUserMusicDirectory(FilePath* result);
61 61
62 // Gets the path to the user's pictures directory. 62 // Gets the path to the user's pictures directory.
63 bool GetUserPicturesDirectory(FilePath* result); 63 bool GetUserPicturesDirectory(FilePath* result);
64 64
65 // Gets the path to the user's videos directory. 65 // Gets the path to the user's videos directory.
66 bool GetUserVideosDirectory(FilePath* result); 66 bool GetUserVideosDirectory(FilePath* result);
67 67
68 #if defined(OS_MACOSX) 68 #if defined(OS_MACOSX) && !defined(OS_IOS)
69 // The "versioned directory" is a directory in the browser .app bundle. It 69 // The "versioned directory" is a directory in the browser .app bundle. It
70 // contains the bulk of the application, except for the things that the system 70 // contains the bulk of the application, except for the things that the system
71 // requires be located at spepcific locations. The versioned directory is 71 // requires be located at spepcific locations. The versioned directory is
72 // in the .app at Contents/Versions/w.x.y.z. 72 // in the .app at Contents/Versions/w.x.y.z.
73 FilePath GetVersionedDirectory(); 73 FilePath GetVersionedDirectory();
74 74
75 // This overrides the directory returned by |GetVersionedDirectory()|, to be 75 // This overrides the directory returned by |GetVersionedDirectory()|, to be
76 // used when |GetVersionedDirectory()| can't automatically determine the proper 76 // used when |GetVersionedDirectory()| can't automatically determine the proper
77 // location. This is the case when the browser didn't load itself but by, e.g., 77 // location. This is the case when the browser didn't load itself but by, e.g.,
78 // the app mode loader. This should be called before |ChromeMain()|. This takes 78 // the app mode loader. This should be called before |ChromeMain()|. This takes
(...skipping 10 matching lines...) Expand all
89 // Get the local library directory. 89 // Get the local library directory.
90 bool GetLocalLibraryDirectory(FilePath* result); 90 bool GetLocalLibraryDirectory(FilePath* result);
91 91
92 // Get the global Application Support directory (under /Library/). 92 // Get the global Application Support directory (under /Library/).
93 bool GetGlobalApplicationSupportDirectory(FilePath* result); 93 bool GetGlobalApplicationSupportDirectory(FilePath* result);
94 94
95 // Returns the NSBundle for the outer browser application, even when running 95 // Returns the NSBundle for the outer browser application, even when running
96 // inside the helper. In unbundled applications, such as tests, returns nil. 96 // inside the helper. In unbundled applications, such as tests, returns nil.
97 NSBundle* OuterAppBundle(); 97 NSBundle* OuterAppBundle();
98 98
99 #endif // OS_MACOSX 99 #endif // OS_MACOSX && !OS_IOS
100 100
101 // Checks if the |process_type| has the rights to access the profile. 101 // Checks if the |process_type| has the rights to access the profile.
102 bool ProcessNeedsProfileDir(const std::string& process_type); 102 bool ProcessNeedsProfileDir(const std::string& process_type);
103 103
104 } // namespace chrome 104 } // namespace chrome
105 105
106 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 106 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths.cc ('k') | chrome/common/chrome_paths_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698