summaryrefslogtreecommitdiffstats
path: root/macosx/HBSecurityAccessToken.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-01-10 14:19:50 +0100
committerDamiano Galassi <[email protected]>2020-01-10 14:19:50 +0100
commit073c2fb84b3ead86d2f2b28cbd737bb936cc0696 (patch)
treed3d832cab0e828a1b2ce76a9f858296c4f74fdb8 /macosx/HBSecurityAccessToken.h
parentefcd5b85b03145964779b8a7700558e44213b8d8 (diff)
MacGui: improve security scoped resources management. Fixes #2566.
Diffstat (limited to 'macosx/HBSecurityAccessToken.h')
-rw-r--r--macosx/HBSecurityAccessToken.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/macosx/HBSecurityAccessToken.h b/macosx/HBSecurityAccessToken.h
index f19f40143..25570de16 100644
--- a/macosx/HBSecurityAccessToken.h
+++ b/macosx/HBSecurityAccessToken.h
@@ -5,26 +5,20 @@
It may be used under the terms of the GNU General Public License. */
#import <Foundation/Foundation.h>
-#import "HBJob.h"
NS_ASSUME_NONNULL_BEGIN
@protocol HBSecurityScope <NSObject>
-/* Given an instance, make the resource referenced by the job accessible to the process.
- */
+/// Given an instance, make the resource referenced by the instance accessible to the process.
- (BOOL)startAccessingSecurityScopedResource;
-/* Revokes the access granted to the url by a prior successful call to startAccessingSecurityScopedResource.
- */
+/// Revokes the access granted to the instance by a prior successful call to startAccessingSecurityScopedResource.
- (void)stopAccessingSecurityScopedResource;
-@end
-
-@interface NSURL (HBSecurityScope) <HBSecurityScope>
-@end
+/// Refresh the resources (for example if the instance stores a security scoped bookmark, it will recreate the urls from the bookmark.
+- (void)refreshSecurityScopedResources;
-@interface HBJob (HBSecurityScope) <HBSecurityScope>
@end
@interface HBSecurityAccessToken : NSObject