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 BASE_MAC_BUNDLE_LOCATIONS_H_ | 5 #ifndef BASE_MAC_BUNDLE_LOCATIONS_H_ |
6 #define BASE_MAC_BUNDLE_LOCATIONS_H_ | 6 #define BASE_MAC_BUNDLE_LOCATIONS_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 // bundle is probably the one to use. | 44 // bundle is probably the one to use. |
45 | 45 |
46 // Methods for retrieving the various bundles. | 46 // Methods for retrieving the various bundles. |
47 BASE_EXPORT NSBundle* MainBundle(); | 47 BASE_EXPORT NSBundle* MainBundle(); |
48 BASE_EXPORT FilePath MainBundlePath(); | 48 BASE_EXPORT FilePath MainBundlePath(); |
49 BASE_EXPORT NSBundle* OuterBundle(); | 49 BASE_EXPORT NSBundle* OuterBundle(); |
50 BASE_EXPORT FilePath OuterBundlePath(); | 50 BASE_EXPORT FilePath OuterBundlePath(); |
51 BASE_EXPORT NSBundle* FrameworkBundle(); | 51 BASE_EXPORT NSBundle* FrameworkBundle(); |
52 BASE_EXPORT FilePath FrameworkBundlePath(); | 52 BASE_EXPORT FilePath FrameworkBundlePath(); |
53 | 53 |
54 // Return the bundle identifier of the outer bundle. | |
Robert Sesek
2017/06/12 21:13:54
I'm not sure this addition is warranted.
Greg K
2017/06/12 21:15:51
I put this in there so .cc files can get the bundl
Robert Sesek
2017/06/12 21:18:07
Rename the file to .mm. We don't add things to bas
Greg K
2017/06/13 18:27:21
Done.
| |
55 BASE_EXPORT std::string GetOuterBundleIdentifier(); | |
56 | |
54 // Set the bundle that the preceding functions will return, overriding the | 57 // Set the bundle that the preceding functions will return, overriding the |
55 // default values. Restore the default by passing in |nil|. | 58 // default values. Restore the default by passing in |nil|. |
56 BASE_EXPORT void SetOverrideOuterBundle(NSBundle* bundle); | 59 BASE_EXPORT void SetOverrideOuterBundle(NSBundle* bundle); |
57 BASE_EXPORT void SetOverrideFrameworkBundle(NSBundle* bundle); | 60 BASE_EXPORT void SetOverrideFrameworkBundle(NSBundle* bundle); |
58 | 61 |
59 // Same as above but accepting a FilePath argument. | 62 // Same as above but accepting a FilePath argument. |
60 BASE_EXPORT void SetOverrideOuterBundlePath(const FilePath& file_path); | 63 BASE_EXPORT void SetOverrideOuterBundlePath(const FilePath& file_path); |
61 BASE_EXPORT void SetOverrideFrameworkBundlePath(const FilePath& file_path); | 64 BASE_EXPORT void SetOverrideFrameworkBundlePath(const FilePath& file_path); |
62 | 65 |
63 } // namespace mac | 66 } // namespace mac |
64 } // namespace base | 67 } // namespace base |
65 | 68 |
66 #endif // BASE_MAC_BUNDLE_LOCATIONS_H_ | 69 #endif // BASE_MAC_BUNDLE_LOCATIONS_H_ |
OLD | NEW |