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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 // Placeholders used in the app mode loader bundle' Info.plist: | 88 // Placeholders used in the app mode loader bundle' Info.plist: |
89 extern NSString* const kShortcutIdPlaceholder; // Extension shortcut ID. | 89 extern NSString* const kShortcutIdPlaceholder; // Extension shortcut ID. |
90 extern NSString* const kShortcutNamePlaceholder; // Extension name. | 90 extern NSString* const kShortcutNamePlaceholder; // Extension name. |
91 extern NSString* const kShortcutURLPlaceholder; | 91 extern NSString* const kShortcutURLPlaceholder; |
92 // Bundle ID of the Chrome browser bundle. | 92 // Bundle ID of the Chrome browser bundle. |
93 extern NSString* const kShortcutBrowserBundleIDPlaceholder; | 93 extern NSString* const kShortcutBrowserBundleIDPlaceholder; |
94 | 94 |
95 // Current major/minor version numbers of |ChromeAppModeInfo| (defined below). | 95 // Current major/minor version numbers of |ChromeAppModeInfo| (defined below). |
96 const unsigned kCurrentChromeAppModeInfoMajorVersion = 1; | 96 const unsigned kCurrentChromeAppModeInfoMajorVersion = 1; |
97 const unsigned kCurrentChromeAppModeInfoMinorVersion = 1; | 97 const unsigned kCurrentChromeAppModeInfoMinorVersion = 2; |
98 | 98 |
99 // The structure used to pass information from the app mode loader to the | 99 // The structure used to pass information from the app mode loader to the |
100 // (browser) framework. This is versioned using major and minor version numbers, | 100 // (browser) framework. This is versioned using major and minor version numbers, |
101 // written below as v<major>.<minor>. Version-number checking is done by the | 101 // written below as v<major>.<minor>. Version-number checking is done by the |
102 // framework, and the framework must accept all structures with the same major | 102 // framework, and the framework must accept all structures with the same major |
103 // version number. It may refuse to load if the major version of the structure | 103 // version number. It may refuse to load if the major version of the structure |
104 // is different from the one it accepts. | 104 // is different from the one it accepts. |
105 struct ChromeAppModeInfo { | 105 struct ChromeAppModeInfo { |
106 public: | 106 public: |
107 ChromeAppModeInfo(); | 107 ChromeAppModeInfo(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 base::FilePath profile_dir; | 143 base::FilePath profile_dir; |
144 }; | 144 }; |
145 | 145 |
146 // Check that the socket and its parent directory have the correct permissions | 146 // Check that the socket and its parent directory have the correct permissions |
147 // and are owned by the user. | 147 // and are owned by the user. |
148 void VerifySocketPermissions(const base::FilePath& socket_path); | 148 void VerifySocketPermissions(const base::FilePath& socket_path); |
149 | 149 |
150 } // namespace app_mode | 150 } // namespace app_mode |
151 | 151 |
152 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 152 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
OLD | NEW |