previous_session_info_private.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #ifndef COMPONENTS_PREVIOUS_SESSION_INFO_PREVIOUS_SESSION_INFO_PRIVATE_H_
  5. #define COMPONENTS_PREVIOUS_SESSION_INFO_PREVIOUS_SESSION_INFO_PRIVATE_H_
  6. #import "components/previous_session_info/previous_session_info.h"
  7. @interface PreviousSessionInfo (TestingOnly)
  8. // Redefined to be read-write.
  9. @property(nonatomic, assign) NSInteger availableDeviceStorage;
  10. @property(nonatomic, assign) BOOL didSeeMemoryWarningShortlyBeforeTerminating;
  11. @property(nonatomic, assign) BOOL isFirstSessionAfterUpgrade;
  12. @property(nonatomic, assign) float deviceBatteryLevel;
  13. @property(nonatomic, assign)
  14. previous_session_info_constants::DeviceBatteryState deviceBatteryState;
  15. @property(nonatomic, assign) BOOL OSRestartedAfterPreviousSession;
  16. @property(nonatomic, copy) NSString* OSVersion;
  17. @property(nonatomic, strong) NSDate* sessionStartTime;
  18. @property(nonatomic, strong) NSDate* sessionEndTime;
  19. @property(nonatomic, assign) BOOL terminatedDuringSessionRestoration;
  20. @property(nonatomic, strong) NSMutableSet<NSString*>* connectedSceneSessionsIDs;
  21. @property(nonatomic, copy) NSDictionary<NSString*, NSString*>* reportParameters;
  22. @property(nonatomic, assign) NSInteger memoryFootprint;
  23. @property(nonatomic, assign) NSInteger tabCount;
  24. @property(nonatomic, assign) NSInteger OTRTabCount;
  25. @property(nonatomic, assign) BOOL applicationWillTerminateWasReceived;
  26. + (void)resetSharedInstanceForTesting;
  27. - (void)pauseRecordingCurrentSession;
  28. - (void)resumeRecordingCurrentSession;
  29. - (void)updateApplicationState;
  30. @end
  31. #endif // COMPONENTS_PREVIOUS_SESSION_INFO_PREVIOUS_SESSION_INFO_PRIVATE_H_