iOS web browser with a focus on security and privacy
1/*
2 * Endless
3 * Copyright (c) 2014-2017 joshua stein <jcs@jcs.org>
4 *
5 * See LICENSE file for redistribution terms.
6 */
7
8#import <UIKit/UIKit.h>
9#import <CoreData/CoreData.h>
10
11#import <Fabric/Fabric.h>
12#import <Crashlytics/Crashlytics.h>
13
14#import "CookieJar.h"
15#import "HSTSCache.h"
16#import "WebViewController.h"
17
18#define STATE_RESTORE_TRY_KEY @"state_restore_lock"
19
20@interface AppDelegate : UIResponder <UIApplicationDelegate, CrashlyticsDelegate>
21
22@property (strong, nonatomic) UIWindow *window;
23
24@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
25@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
26@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
27
28@property (strong, atomic) WebViewController *webViewController;
29@property (strong, atomic) CookieJar *cookieJar;
30@property (strong, atomic) HSTSCache *hstsCache;
31
32@property (readonly, strong, nonatomic) NSMutableDictionary *searchEngines;
33
34@property (strong, atomic) NSString *defaultUserAgent;
35
36- (BOOL)areTesting;
37
38@end
39