| 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/file_path.h" | 9 #include "base/file_path.h" |
| 10 | 10 |
| 11 #if defined(__OBJC__) | 11 #if defined(__OBJC__) |
| 12 #import <Foundation/Foundation.h> | 12 #import <Foundation/Foundation.h> |
| 13 #else // __OBJC__ | 13 #else // __OBJC__ |
| 14 class NSBundle; | 14 class NSBundle; |
| 15 class NSString; | 15 class NSString; |
| 16 #endif // __OBJC__ | 16 #endif // __OBJC__ |
| 17 | 17 |
| 18 namespace base { |
| 19 |
| 18 class FilePath; | 20 class FilePath; |
| 19 | 21 |
| 20 namespace base { | |
| 21 namespace mac { | 22 namespace mac { |
| 22 | 23 |
| 23 // This file provides several functions to explicitly request the various | 24 // This file provides several functions to explicitly request the various |
| 24 // component bundles of Chrome. Please use these methods rather than calling | 25 // component bundles of Chrome. Please use these methods rather than calling |
| 25 // +[NSBundle mainBundle] or CFBundleGetMainBundle(). | 26 // +[NSBundle mainBundle] or CFBundleGetMainBundle(). |
| 26 // | 27 // |
| 27 // Terminology | 28 // Terminology |
| 28 // - "Outer Bundle" - This is the main bundle for Chrome; it's what | 29 // - "Outer Bundle" - This is the main bundle for Chrome; it's what |
| 29 // +[NSBundle mainBundle] returns when Chrome is launched normally. | 30 // +[NSBundle mainBundle] returns when Chrome is launched normally. |
| 30 // | 31 // |
| (...skipping 26 matching lines...) Expand all Loading... |
| 57 BASE_EXPORT void SetOverrideFrameworkBundle(NSBundle* bundle); | 58 BASE_EXPORT void SetOverrideFrameworkBundle(NSBundle* bundle); |
| 58 | 59 |
| 59 // Same as above but accepting a FilePath argument. | 60 // Same as above but accepting a FilePath argument. |
| 60 BASE_EXPORT void SetOverrideOuterBundlePath(const FilePath& file_path); | 61 BASE_EXPORT void SetOverrideOuterBundlePath(const FilePath& file_path); |
| 61 BASE_EXPORT void SetOverrideFrameworkBundlePath(const FilePath& file_path); | 62 BASE_EXPORT void SetOverrideFrameworkBundlePath(const FilePath& file_path); |
| 62 | 63 |
| 63 } // namespace mac | 64 } // namespace mac |
| 64 } // namespace base | 65 } // namespace base |
| 65 | 66 |
| 66 #endif // BASE_MAC_BUNDLE_LOCATIONS_H_ | 67 #endif // BASE_MAC_BUNDLE_LOCATIONS_H_ |
| OLD | NEW |