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 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Foundation/Foundation.h> | 9 #import <Foundation/Foundation.h> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // Key for the app's shortcut name. | 30 // Key for the app's shortcut name. |
31 extern NSString* const kCrAppModeShortcutShortNameKey; | 31 extern NSString* const kCrAppModeShortcutShortNameKey; |
32 | 32 |
33 // Key for the app's unrestricted name. | 33 // Key for the app's unrestricted name. |
34 extern NSString* const kCrAppModeShortcutNameKey; | 34 extern NSString* const kCrAppModeShortcutNameKey; |
35 | 35 |
36 // Key for the app's URL. | 36 // Key for the app's URL. |
37 extern NSString* const kCrAppModeShortcutURLKey; | 37 extern NSString* const kCrAppModeShortcutURLKey; |
38 | 38 |
| 39 // Key for the app user data directory. |
| 40 extern NSString* const kCrAppModeUserDataDirKey; |
| 41 |
39 // Current major/minor version numbers of |ChromeAppModeInfo| (defined below). | 42 // Current major/minor version numbers of |ChromeAppModeInfo| (defined below). |
40 const unsigned kCurrentChromeAppModeInfoMajorVersion = 1; | 43 const unsigned kCurrentChromeAppModeInfoMajorVersion = 1; |
41 const unsigned kCurrentChromeAppModeInfoMinorVersion = 0; | 44 const unsigned kCurrentChromeAppModeInfoMinorVersion = 0; |
42 | 45 |
43 // The structure used to pass information from the app mode loader to the | 46 // The structure used to pass information from the app mode loader to the |
44 // (browser) framework. This is versioned using major and minor version numbers, | 47 // (browser) framework. This is versioned using major and minor version numbers, |
45 // written below as v<major>.<minor>. Version-number checking is done by the | 48 // written below as v<major>.<minor>. Version-number checking is done by the |
46 // framework, and the framework must accept all structures with the same major | 49 // framework, and the framework must accept all structures with the same major |
47 // version number. It may refuse to load if the major version of the structure | 50 // version number. It may refuse to load if the major version of the structure |
48 // is different from the one it accepts. | 51 // is different from the one it accepts. |
(...skipping 23 matching lines...) Expand all Loading... |
72 std::string app_mode_id; // Required: v1.0 | 75 std::string app_mode_id; // Required: v1.0 |
73 | 76 |
74 // Short (e.g., one-word) UTF8-encoded name for the shortcut. | 77 // Short (e.g., one-word) UTF8-encoded name for the shortcut. |
75 string16 app_mode_short_name; // Optional: v1.0 | 78 string16 app_mode_short_name; // Optional: v1.0 |
76 | 79 |
77 // Unrestricted (e.g., several-word) UTF8-encoded name for the shortcut. | 80 // Unrestricted (e.g., several-word) UTF8-encoded name for the shortcut. |
78 string16 app_mode_name; // Optional: v1.0 | 81 string16 app_mode_name; // Optional: v1.0 |
79 | 82 |
80 // URL for the shortcut. Must be a valid URL. | 83 // URL for the shortcut. Must be a valid URL. |
81 std::string app_mode_url; // Required: v1.0 | 84 std::string app_mode_url; // Required: v1.0 |
| 85 |
| 86 // Path to the app's user data directory. |
| 87 FilePath user_data_dir; |
82 }; | 88 }; |
83 | 89 |
84 } // namespace app_mode | 90 } // namespace app_mode |
85 | 91 |
86 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 92 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
OLD | NEW |