| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_ENTRY_H_ | 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_ENTRY_H_ |
| 6 #define STORAGE_BROWSER_BLOB_BLOB_ENTRY_H_ | 6 #define STORAGE_BROWSER_BLOB_BLOB_ENTRY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/optional.h" | 18 #include "base/optional.h" |
| 19 #include "storage/browser/blob/blob_memory_controller.h" | 19 #include "storage/browser/blob/blob_memory_controller.h" |
| 20 #include "storage/browser/storage_browser_export.h" | 20 #include "storage/browser/storage_browser_export.h" |
| 21 | 21 |
| 22 namespace storage { | 22 namespace storage { |
| 23 class BlobDataHandle; | 23 class BlobDataHandle; |
| 24 class ShareableBlobDataItem; | 24 class ShareableBlobDataItem; |
| 25 class ViewBlobInternalsJob; | |
| 26 | 25 |
| 27 // Represents a blob in BlobStorageRegistry. Exported only for unit tests. | 26 // Represents a blob in BlobStorageRegistry. Exported only for unit tests. |
| 28 class STORAGE_EXPORT BlobEntry { | 27 class STORAGE_EXPORT BlobEntry { |
| 29 public: | 28 public: |
| 30 using TransportAllowedCallback = | 29 using TransportAllowedCallback = |
| 31 base::Callback<void(BlobStatus, | 30 base::Callback<void(BlobStatus, |
| 32 std::vector<BlobMemoryController::FileCreationInfo>)>; | 31 std::vector<BlobMemoryController::FileCreationInfo>)>; |
| 33 | 32 |
| 34 // Records a copy from a referenced blob. Copies happen after referenced blobs | 33 // Records a copy from a referenced blob. Copies happen after referenced blobs |
| 35 // are complete & quota for the copies is granted. | 34 // are complete & quota for the copies is granted. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 std::vector<uint64_t> offsets_; | 161 std::vector<uint64_t> offsets_; |
| 163 | 162 |
| 164 // Only populated if our status is PENDING_*. | 163 // Only populated if our status is PENDING_*. |
| 165 std::unique_ptr<BuildingState> building_state_; | 164 std::unique_ptr<BuildingState> building_state_; |
| 166 | 165 |
| 167 DISALLOW_COPY_AND_ASSIGN(BlobEntry); | 166 DISALLOW_COPY_AND_ASSIGN(BlobEntry); |
| 168 }; | 167 }; |
| 169 | 168 |
| 170 } // namespace storage | 169 } // namespace storage |
| 171 #endif // STORAGE_BROWSER_BLOB_BLOB_ENTRY_H_ | 170 #endif // STORAGE_BROWSER_BLOB_BLOB_ENTRY_H_ |
| OLD | NEW |