| 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 CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 5 #ifndef CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
| 6 #define CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 6 #define CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 extern const char kLaunchedForTest[]; | 42 extern const char kLaunchedForTest[]; |
| 43 | 43 |
| 44 // Indicates to the shim that this Chrome has rebuilt it once already, i.e. if | 44 // Indicates to the shim that this Chrome has rebuilt it once already, i.e. if |
| 45 // it fails to launch again, don't trigger another rebuild. | 45 // it fails to launch again, don't trigger another rebuild. |
| 46 extern const char kLaunchedAfterRebuild[]; | 46 extern const char kLaunchedAfterRebuild[]; |
| 47 | 47 |
| 48 // Path to an app shim bundle. Indicates to Chrome that this shim attempted to | 48 // Path to an app shim bundle. Indicates to Chrome that this shim attempted to |
| 49 // launch but failed. | 49 // launch but failed. |
| 50 extern const char kAppShimError[]; | 50 extern const char kAppShimError[]; |
| 51 | 51 |
| 52 // The reason for the above app shim error. Should be one of the following. |
| 53 extern const char kAppShimErrorDetail[]; |
| 54 |
| 55 // This was a 32 bit shim. |
| 56 extern const char kAppShimErrorDetail32Bit[]; |
| 57 |
| 58 // This was a 64 bit shim. |
| 59 extern const char kAppShimErrorDetail64Bit[]; |
| 60 |
| 52 // Keys for specifying the file types handled by an app. | 61 // Keys for specifying the file types handled by an app. |
| 53 extern NSString* const kCFBundleDocumentTypesKey; | 62 extern NSString* const kCFBundleDocumentTypesKey; |
| 54 extern NSString* const kCFBundleTypeExtensionsKey; | 63 extern NSString* const kCFBundleTypeExtensionsKey; |
| 55 extern NSString* const kCFBundleTypeIconFileKey; | 64 extern NSString* const kCFBundleTypeIconFileKey; |
| 56 extern NSString* const kCFBundleTypeNameKey; | 65 extern NSString* const kCFBundleTypeNameKey; |
| 57 extern NSString* const kCFBundleTypeMIMETypesKey; | 66 extern NSString* const kCFBundleTypeMIMETypesKey; |
| 58 extern NSString* const kCFBundleTypeRoleKey; | 67 extern NSString* const kCFBundleTypeRoleKey; |
| 59 extern NSString* const kBundleTypeRoleViewer; | 68 extern NSString* const kBundleTypeRoleViewer; |
| 60 | 69 |
| 61 // The display name of the bundle as shown in Finder and the Dock. For localized | 70 // The display name of the bundle as shown in Finder and the Dock. For localized |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 base::FilePath profile_dir; | 160 base::FilePath profile_dir; |
| 152 }; | 161 }; |
| 153 | 162 |
| 154 // Check that the socket and its parent directory have the correct permissions | 163 // Check that the socket and its parent directory have the correct permissions |
| 155 // and are owned by the user. | 164 // and are owned by the user. |
| 156 void VerifySocketPermissions(const base::FilePath& socket_path); | 165 void VerifySocketPermissions(const base::FilePath& socket_path); |
| 157 | 166 |
| 158 } // namespace app_mode | 167 } // namespace app_mode |
| 159 | 168 |
| 160 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 169 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
| OLD | NEW |