FIRStorage_Private.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright 2017 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. @class FIRApp;
  17. @class GTMSessionFetcherService;
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface FIRStorage ()
  20. @property(strong, nonatomic, readwrite) FIRApp *app;
  21. @property(strong, nonatomic, nullable) GTMSessionFetcherService *fetcherServiceForApp;
  22. @property(nonatomic, readonly) dispatch_queue_t dispatchQueue;
  23. @property(strong, nonatomic) NSString *storageBucket;
  24. @property(strong, nonatomic) NSString *scheme;
  25. @property(strong, nonatomic) NSString *host;
  26. @property(strong, nonatomic) NSNumber *port;
  27. /**
  28. * Maximum time between retry attempts for uploads.
  29. *
  30. * This is used by GTMSessionFetcher and translated from the user provided `maxUploadRetryTime`.
  31. */
  32. @property(assign, nonatomic) NSTimeInterval maxUploadRetryInterval;
  33. /**
  34. * Maximum time between retry attempts for downloads.
  35. *
  36. * This is used by GTMSessionFetcher and translated from the user provided `maxDownloadRetryTime`.
  37. */
  38. @property(assign, nonatomic) NSTimeInterval maxDownloadRetryInterval;
  39. /**
  40. * Maximum time between retry attempts for any operation that is not an upload or download.
  41. *
  42. * This is used by GTMSessionFetcher and translated from the user provided `maxOperationRetryTime`.
  43. */
  44. @property(assign, nonatomic) NSTimeInterval maxOperationRetryInterval;
  45. /**
  46. * Enables/disables GTMSessionFetcher HTTP logging
  47. * @param isLoggingEnabled Boolean passed through to enable/disable GTMSessionFetcher logging
  48. */
  49. + (void)setGTMSessionFetcherLoggingEnabled:(BOOL)isLoggingEnabled;
  50. /** Configures the storage instance. Freezes the host setting. */
  51. - (void)ensureConfigured;
  52. @end
  53. NS_ASSUME_NONNULL_END