| 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" |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 | 12 |
| 13 // This file contains constants, interfaces, etc. which are common to the | 13 // This file contains constants, interfaces, etc. which are common to the |
| 14 // browser application and the app mode loader (a.k.a. shim). | 14 // browser application and the app mode loader (a.k.a. shim). |
| 15 | 15 |
| 16 namespace app_mode { | 16 namespace app_mode { |
| 17 | 17 |
| 18 // These are keys for an Apple Event ping that the app shim process sends to | 18 // These are keys for an Apple Event ping that the app shim process sends to |
| 19 // Chrome to get confirmation that Chrome is alive. The main Chrome process | 19 // Chrome to get confirmation that Chrome is alive. The main Chrome process |
| 20 // doesn't need to register any handlers for them -- the event is just sent for | 20 // doesn't need to register any handlers for them -- the event is just sent for |
| 21 // the empty reply that's automatically returned by the system. | 21 // the empty reply that's automatically returned by the system. |
| 22 const AEEventClass kAEChromeAppClass = 'cApp'; | 22 const AEEventClass kAEChromeAppClass = 'cApp'; |
| 23 const AEEventID kAEChromeAppPing = 'ping'; | 23 const AEEventID kAEChromeAppPing = 'ping'; |
| 24 | 24 |
| 25 // The IPC socket used to communicate between app shims and Chrome will be | 25 // The IPC socket used to communicate between app shims and Chrome will be |
| 26 // created under the user data directory with this name. | 26 // created under the user data directory with this name. |
| 27 extern const char kAppShimSocketName[]; | 27 extern const char kAppShimSocketName[]; |
| 28 | 28 |
| 29 // Special app id used for the App Launcher. |
| 30 extern const char kAppListModeId[]; |
| 31 |
| 29 // The key under which the browser's bundle ID will be stored in the | 32 // The key under which the browser's bundle ID will be stored in the |
| 30 // app mode launcher bundle's Info.plist. | 33 // app mode launcher bundle's Info.plist. |
| 31 extern NSString* const kBrowserBundleIDKey; | 34 extern NSString* const kBrowserBundleIDKey; |
| 32 | 35 |
| 33 // Key for the shortcut ID. | 36 // Key for the shortcut ID. |
| 34 extern NSString* const kCrAppModeShortcutIDKey; | 37 extern NSString* const kCrAppModeShortcutIDKey; |
| 35 | 38 |
| 36 // Key for the app's name. | 39 // Key for the app's name. |
| 37 extern NSString* const kCrAppModeShortcutNameKey; | 40 extern NSString* const kCrAppModeShortcutNameKey; |
| 38 | 41 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Path to the app's user data directory. | 106 // Path to the app's user data directory. |
| 104 base::FilePath user_data_dir; | 107 base::FilePath user_data_dir; |
| 105 | 108 |
| 106 // Directory of the profile associated with the app. | 109 // Directory of the profile associated with the app. |
| 107 base::FilePath profile_dir; | 110 base::FilePath profile_dir; |
| 108 }; | 111 }; |
| 109 | 112 |
| 110 } // namespace app_mode | 113 } // namespace app_mode |
| 111 | 114 |
| 112 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 115 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
| OLD | NEW |