Index: ios/chrome/app/startup_tasks.h |
diff --git a/ios/chrome/app/startup_tasks.h b/ios/chrome/app/startup_tasks.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d9cc1774934b526ca7fefe6a06319b0da78f48ac |
--- /dev/null |
+++ b/ios/chrome/app/startup_tasks.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CHROME_APP_STARTUP_TASKS_H_ |
+#define IOS_CHROME_APP_STARTUP_TASKS_H_ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+namespace ios { |
+class ChromeBrowserState; |
+} // namespace ios. |
+ |
+// Class handling all startup tasks. |
+@interface StartupTasks : NSObject |
+ |
+// Asynchronously finishes the browser state initialization by scheduling |
+// |performDeferredInitializationForBrowserState:|. |
+- (void)scheduleDeferredBrowserStateInitialization: |
+ (ios::ChromeBrowserState*)browserState; |
+// Starts Omaha and, if first run, sets install time. For official builds only. |
+- (void)initializeOmaha; |
+// Registers to receive UIApplicationWillResignActiveNotification. |
+- (void)registerForApplicationWillResignActiveNotification; |
+ |
+@end |
+ |
+#endif // IOS_CHROME_APP_STARTUP_TASKS_H_ |