Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: chrome/common/mac/app_mode_common.h

Issue 12623005: [mac] App shims (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -> _mac Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/common_message_generator.h ('k') | chrome/common/mac/app_mode_common.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Keys for a custom 'launch platform app' Apple event. When Chrome receives 18 // These are keys for an Apple Event ping that the app shim process sends to
19 // this event, it should launch the app specified by the direct key in the 19 // Chrome to get confirmation that Chrome is alive. The main Chrome process
20 // event, in the profile specified by the 'pdir' key. 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 const AEEventClass kAEChromeAppClass = 'cApp'; 22 const AEEventClass kAEChromeAppClass = 'cApp';
22 const AEEventID kAEChromeAppLaunch = 'lnch'; 23 const AEEventID kAEChromeAppPing = 'ping';
23 const AEKeyword kAEProfileDirKey = 'pdir'; 24
25 // The IPC socket used to communicate between app shims and Chrome will be
26 // created under the user data directory with this name.
27 extern const char kAppShimSocketName[];
24 28
25 // The key under which the browser's bundle ID will be stored in the 29 // The key under which the browser's bundle ID will be stored in the
26 // app mode launcher bundle's Info.plist. 30 // app mode launcher bundle's Info.plist.
27 extern NSString* const kBrowserBundleIDKey; 31 extern NSString* const kBrowserBundleIDKey;
28 32
29 // Key for the shortcut ID. 33 // Key for the shortcut ID.
30 extern NSString* const kCrAppModeShortcutIDKey; 34 extern NSString* const kCrAppModeShortcutIDKey;
31 35
32 // Key for the app's name. 36 // Key for the app's name.
33 extern NSString* const kCrAppModeShortcutNameKey; 37 extern NSString* const kCrAppModeShortcutNameKey;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Path to the app's user data directory. 103 // Path to the app's user data directory.
100 base::FilePath user_data_dir; 104 base::FilePath user_data_dir;
101 105
102 // Directory of the profile associated with the app. 106 // Directory of the profile associated with the app.
103 base::FilePath profile_dir; 107 base::FilePath profile_dir;
104 }; 108 };
105 109
106 } // namespace app_mode 110 } // namespace app_mode
107 111
108 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ 112 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_
OLDNEW
« no previous file with comments | « chrome/common/common_message_generator.h ('k') | chrome/common/mac/app_mode_common.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698