aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Storage/Private
diff options
context:
space:
mode:
authorGravatar Sebastian Schmidt <mrschmidt@google.com>2018-04-13 12:17:36 -0700
committerGravatar Sebastian Schmidt <mrschmidt@google.com>2018-04-13 12:20:32 -0700
commite86665b1ba2bbaf7ddd70873118badc812e0bc20 (patch)
tree1e23f791a5a49e0fabcae2c5dc052db08d5f184e /Firebase/Storage/Private
parenta7ce4d9d3c33ac5e1e1ce9a5e7952cb0946aba96 (diff)
Addressing feedback
Diffstat (limited to 'Firebase/Storage/Private')
-rw-r--r--Firebase/Storage/Private/FIRStorageErrors.h8
-rw-r--r--Firebase/Storage/Private/FIRStorageGetDownloadURLTask.h3
-rw-r--r--Firebase/Storage/Private/FIRStorageGetDownloadURLTask_Private.h30
3 files changed, 38 insertions, 3 deletions
diff --git a/Firebase/Storage/Private/FIRStorageErrors.h b/Firebase/Storage/Private/FIRStorageErrors.h
index 46e87d2..a76a6aa 100644
--- a/Firebase/Storage/Private/FIRStorageErrors.h
+++ b/Firebase/Storage/Private/FIRStorageErrors.h
@@ -57,6 +57,14 @@ NS_ASSUME_NONNULL_BEGIN
*/
+ (NSError *)errorWithInvalidRequest:(NSData *)request;
+/**
+ * Creates a Firebase Storage error with a custom error message.
+ *
+ * @param errorMessage A custom error message.
+ * @return Returns the corresponding Firebase Storage error.
+ */
++ (NSError *)errorWithCustomMessage:(NSString *)errorMessage;
+
@end
NS_ASSUME_NONNULL_END
diff --git a/Firebase/Storage/Private/FIRStorageGetDownloadURLTask.h b/Firebase/Storage/Private/FIRStorageGetDownloadURLTask.h
index c349f30..8cd9eb3 100644
--- a/Firebase/Storage/Private/FIRStorageGetDownloadURLTask.h
+++ b/Firebase/Storage/Private/FIRStorageGetDownloadURLTask.h
@@ -29,9 +29,6 @@ NS_ASSUME_NONNULL_BEGIN
fetcherService:(GTMSessionFetcherService *)service
completion:(FIRStorageVoidURLError)completion;
-// Visible for testing.
-+ (NSURL *)downloadURLFromMetadataDictionary:(NSDictionary *)dictionary;
-
@end
NS_ASSUME_NONNULL_END
diff --git a/Firebase/Storage/Private/FIRStorageGetDownloadURLTask_Private.h b/Firebase/Storage/Private/FIRStorageGetDownloadURLTask_Private.h
new file mode 100644
index 0000000..ac5fd80
--- /dev/null
+++ b/Firebase/Storage/Private/FIRStorageGetDownloadURLTask_Private.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2018 Google
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import "FIRStorageGetDownloadURLTask.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+/**
+ * Task which provides the ability to get a download URL for an object in Firebase Storage.
+ */
+@interface FIRStorageGetDownloadURLTask ()
+
++ (NSURL *)downloadURLFromMetadataDictionary:(NSDictionary *)dictionary;
+
+@end
+
+NS_ASSUME_NONNULL_END