| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_STORAGE_CONTEXT_H_ | 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ |
| 6 #define STORAGE_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ | 6 #define STORAGE_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 namespace base { | 30 namespace base { |
| 31 class FilePath; | 31 class FilePath; |
| 32 class Time; | 32 class Time; |
| 33 class TaskRunner; | 33 class TaskRunner; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace content { | 36 namespace content { |
| 37 class BlobDispatcherHost; | 37 class BlobDispatcherHost; |
| 38 class BlobDispatcherHostTest; | 38 class BlobDispatcherHostTest; |
| 39 class BlobStorageBrowserTest; | 39 class BlobStorageBrowserTest; |
| 40 class ChromeBlobStorageContext; |
| 40 } | 41 } |
| 41 | 42 |
| 42 namespace storage { | 43 namespace storage { |
| 43 class BlobDataBuilder; | 44 class BlobDataBuilder; |
| 44 class BlobDataHandle; | 45 class BlobDataHandle; |
| 45 class BlobDataItem; | 46 class BlobDataItem; |
| 46 class BlobDataSnapshot; | 47 class BlobDataSnapshot; |
| 47 class ShareableBlobDataItem; | 48 class ShareableBlobDataItem; |
| 48 | 49 |
| 49 // This class handles the logistics of blob storage within the browser process. | 50 // This class handles the logistics of blob storage within the browser process. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 const BlobMemoryController& memory_controller() { return memory_controller_; } | 124 const BlobMemoryController& memory_controller() { return memory_controller_; } |
| 124 | 125 |
| 125 base::WeakPtr<BlobStorageContext> AsWeakPtr() { | 126 base::WeakPtr<BlobStorageContext> AsWeakPtr() { |
| 126 return ptr_factory_.GetWeakPtr(); | 127 return ptr_factory_.GetWeakPtr(); |
| 127 } | 128 } |
| 128 | 129 |
| 129 protected: | 130 protected: |
| 130 friend class content::BlobDispatcherHost; | 131 friend class content::BlobDispatcherHost; |
| 131 friend class content::BlobDispatcherHostTest; | 132 friend class content::BlobDispatcherHostTest; |
| 132 friend class content::BlobStorageBrowserTest; | 133 friend class content::BlobStorageBrowserTest; |
| 134 friend class content::ChromeBlobStorageContext; |
| 133 friend class BlobTransportHost; | 135 friend class BlobTransportHost; |
| 134 friend class BlobTransportHostTest; | 136 friend class BlobTransportHostTest; |
| 135 friend class BlobDataHandle; | 137 friend class BlobDataHandle; |
| 136 friend class BlobDataHandle::BlobDataHandleShared; | 138 friend class BlobDataHandle::BlobDataHandleShared; |
| 137 friend class BlobFlattenerTest; | 139 friend class BlobFlattenerTest; |
| 138 friend class BlobSliceTest; | 140 friend class BlobSliceTest; |
| 139 friend class BlobStorageContextTest; | 141 friend class BlobStorageContextTest; |
| 140 | 142 |
| 141 enum class TransportQuotaType { MEMORY, FILE }; | 143 enum class TransportQuotaType { MEMORY, FILE }; |
| 142 | 144 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 BlobStorageRegistry registry_; | 267 BlobStorageRegistry registry_; |
| 266 BlobMemoryController memory_controller_; | 268 BlobMemoryController memory_controller_; |
| 267 base::WeakPtrFactory<BlobStorageContext> ptr_factory_; | 269 base::WeakPtrFactory<BlobStorageContext> ptr_factory_; |
| 268 | 270 |
| 269 DISALLOW_COPY_AND_ASSIGN(BlobStorageContext); | 271 DISALLOW_COPY_AND_ASSIGN(BlobStorageContext); |
| 270 }; | 272 }; |
| 271 | 273 |
| 272 } // namespace storage | 274 } // namespace storage |
| 273 | 275 |
| 274 #endif // STORAGE_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ | 276 #endif // STORAGE_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ |
| OLD | NEW |