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

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

Issue 9374009: Install platform apps into a separate data directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 10 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/browser/web_applications/web_app_mac.mm ('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 #pragma once 7 #pragma once
8 8
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 10
(...skipping 21 matching lines...) Expand all
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. 39 // Key for the app user data directory.
40 extern NSString* const kCrAppModeUserDataDirKey; 40 extern NSString* const kCrAppModeUserDataDirKey;
41 41
42 // Key for the app's extension path.
43 extern NSString* const kCrAppModeExtensionPathKey;
44
42 // Current major/minor version numbers of |ChromeAppModeInfo| (defined below). 45 // Current major/minor version numbers of |ChromeAppModeInfo| (defined below).
43 const unsigned kCurrentChromeAppModeInfoMajorVersion = 1; 46 const unsigned kCurrentChromeAppModeInfoMajorVersion = 1;
44 const unsigned kCurrentChromeAppModeInfoMinorVersion = 0; 47 const unsigned kCurrentChromeAppModeInfoMinorVersion = 0;
45 48
46 // The structure used to pass information from the app mode loader to the 49 // The structure used to pass information from the app mode loader to the
47 // (browser) framework. This is versioned using major and minor version numbers, 50 // (browser) framework. This is versioned using major and minor version numbers,
48 // written below as v<major>.<minor>. Version-number checking is done by the 51 // written below as v<major>.<minor>. Version-number checking is done by the
49 // framework, and the framework must accept all structures with the same major 52 // framework, and the framework must accept all structures with the same major
50 // version number. It may refuse to load if the major version of the structure 53 // version number. It may refuse to load if the major version of the structure
51 // is different from the one it accepts. 54 // is different from the one it accepts.
(...skipping 26 matching lines...) Expand all
78 string16 app_mode_short_name; // Optional: v1.0 81 string16 app_mode_short_name; // Optional: v1.0
79 82
80 // Unrestricted (e.g., several-word) UTF8-encoded name for the shortcut. 83 // Unrestricted (e.g., several-word) UTF8-encoded name for the shortcut.
81 string16 app_mode_name; // Optional: v1.0 84 string16 app_mode_name; // Optional: v1.0
82 85
83 // URL for the shortcut. Must be a valid URL. 86 // URL for the shortcut. Must be a valid URL.
84 std::string app_mode_url; // Required: v1.0 87 std::string app_mode_url; // Required: v1.0
85 88
86 // Path to the app's user data directory. 89 // Path to the app's user data directory.
87 FilePath user_data_dir; 90 FilePath user_data_dir;
91
92 // Path to the app's extension.
93 FilePath extension_path;
88 }; 94 };
89 95
90 } // namespace app_mode 96 } // namespace app_mode
91 97
92 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ 98 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | chrome/common/mac/app_mode_common.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698