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

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

Issue 66043003: Put app shim IPC socket in a temporary directory. (Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 11 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
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"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Check that the socket and its parent directory have the correct permissions
131 // and are owned by the user.
tapted 2014/01/06 07:31:28 actually, it's not checking ownership (yet?).
132 void VerifySocketPermissions(const base::FilePath& socket_path);
133
130 } // namespace app_mode 134 } // namespace app_mode
131 135
132 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_ 136 #endif // CHROME_COMMON_MAC_APP_MODE_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698