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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // URL for the shortcut. Must be a valid URL. | 120 // URL for the shortcut. Must be a valid URL. |
121 std::string app_mode_url; // Required: v1.0 | 121 std::string app_mode_url; // Required: v1.0 |
122 | 122 |
123 // Path to the app's user data directory. | 123 // Path to the app's user data directory. |
124 base::FilePath user_data_dir; | 124 base::FilePath user_data_dir; |
125 | 125 |
126 // Directory of the profile associated with the app. | 126 // Directory of the profile associated with the app. |
127 base::FilePath profile_dir; | 127 base::FilePath profile_dir; |
128 }; | 128 }; |
129 | 129 |
| 130 // Due to kernel API restraints on the length of the path to a socket, we |
| 131 // cannot use a socket under the user data dir. GetShortSocketPath returns a |
| 132 // path under /tmp constructed from a hash of the user data dir. |
| 133 base::FilePath GetShortSocketPath(const base::FilePath& user_data_dir); |
| 134 |
130 } // namespace app_mode | 135 } // namespace app_mode |
131 | 136 |
132 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ | 137 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ |
OLD | NEW |