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 19 matching lines...) Expand all Loading... |
30 extern const char kAppShimSocketSymlinkName[]; | 30 extern const char kAppShimSocketSymlinkName[]; |
31 | 31 |
32 // Special app mode id used for the App Launcher. | 32 // Special app mode id used for the App Launcher. |
33 extern const char kAppListModeId[]; | 33 extern const char kAppListModeId[]; |
34 | 34 |
35 // The process ID of the Chrome process that launched the app shim. | 35 // The process ID of the Chrome process that launched the app shim. |
36 // The presence of this switch instructs the app shim to send LaunchApp with | 36 // The presence of this switch instructs the app shim to send LaunchApp with |
37 // launch_now = false. This associates the shim without launching the app. | 37 // launch_now = false. This associates the shim without launching the app. |
38 extern const char kLaunchedByChromeProcessId[]; | 38 extern const char kLaunchedByChromeProcessId[]; |
39 | 39 |
| 40 // Indicates to the shim that it was launched for a test, so don't attempt to |
| 41 // launch Chrome. |
| 42 extern const char kLaunchedForTest[]; |
| 43 |
40 // Path to an app shim bundle. Indicates to Chrome that this shim attempted to | 44 // Path to an app shim bundle. Indicates to Chrome that this shim attempted to |
41 // launch but failed. | 45 // launch but failed. |
42 extern const char kAppShimError[]; | 46 extern const char kAppShimError[]; |
43 | 47 |
44 // Keys for specifying the file types handled by an app. | 48 // Keys for specifying the file types handled by an app. |
45 extern NSString* const kCFBundleDocumentTypesKey; | 49 extern NSString* const kCFBundleDocumentTypesKey; |
46 extern NSString* const kCFBundleTypeExtensionsKey; | 50 extern NSString* const kCFBundleTypeExtensionsKey; |
47 extern NSString* const kCFBundleTypeIconFileKey; | 51 extern NSString* const kCFBundleTypeIconFileKey; |
48 extern NSString* const kCFBundleTypeNameKey; | 52 extern NSString* const kCFBundleTypeNameKey; |
49 extern NSString* const kCFBundleTypeMIMETypesKey; | 53 extern NSString* const kCFBundleTypeMIMETypesKey; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 base::FilePath profile_dir; | 147 base::FilePath profile_dir; |
144 }; | 148 }; |
145 | 149 |
146 // Check that the socket and its parent directory have the correct permissions | 150 // Check that the socket and its parent directory have the correct permissions |
147 // and are owned by the user. | 151 // and are owned by the user. |
148 void VerifySocketPermissions(const base::FilePath& socket_path); | 152 void VerifySocketPermissions(const base::FilePath& socket_path); |
149 | 153 |
150 } // namespace app_mode | 154 } // namespace app_mode |
151 | 155 |
152 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 156 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
OLD | NEW |