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

Side by Side Diff: ios/chrome/app/application_delegate/startup_information.h

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 4 years 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_APP_APPLICATION_DELEGATE_STARTUP_INFORMATION_H_
6 #define IOS_CHROME_APP_APPLICATION_DELEGATE_STARTUP_INFORMATION_H_
7
8 class FirstUserActionRecorder;
9
10 namespace base {
11 class TimeTicks;
12 }
13
14 @class AppStartupParameters;
15
16 // Contains information about the startup.
17 @protocol StartupInformation<NSObject>
18
19 // Whether First Run UI (terms of service & sync sign-in) is being presented
20 // in a modal dialog.
21 @property(nonatomic) BOOL isPresentingFirstRunUI;
22 // Whether the current session began from a cold start. NO if the app has
23 // entered the background at least once since start up.
24 @property(nonatomic) BOOL isColdStart;
25 // Parameters received at startup time when the app is launched from another
26 // app.
27 @property(nonatomic, retain) AppStartupParameters* startupParameters;
28 // Start of the application, used for UMA.
29 @property(nonatomic, assign) base::TimeTicks appLaunchTime;
30 // An object to record metrics related to the user's first action.
31 @property(nonatomic, readonly) FirstUserActionRecorder* firstUserActionRecorder;
32
33 // Disables the FirstUserActionRecorder.
34 - (void)resetFirstUserActionRecorder;
35
36 // Expire the FirstUserActionRecorder and disable it.
37 - (void)expireFirstUserActionRecorder;
38
39 // Expire the FirstUserActionRecorder and disable it after a delay.
40 - (void)expireFirstUserActionRecorderAfterDelay:(NSTimeInterval)delay;
41
42 // Enable the FirstUserActionRecorder with the time spent in background.
43 - (void)activateFirstUserActionRecorderWithBackgroundTime:
44 (NSTimeInterval)backgroundTime;
45
46 // Teardown that is needed by common Chrome code. This should not be called if
47 // Chrome code is still on the stack.
48 - (void)stopChromeMain;
49
50 @end
51
52 #endif // IOS_CHROME_APP_APPLICATION_DELEGATE_STARTUP_INFORMATION_H_
OLDNEW
« no previous file with comments | « ios/chrome/app/application_delegate/mock_tab_opener.mm ('k') | ios/chrome/app/application_delegate/tab_opening.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698