| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 const BlobMemoryController& memory_controller() { return memory_controller_; } | 123 const BlobMemoryController& memory_controller() { return memory_controller_; } |
| 124 | 124 |
| 125 base::WeakPtr<BlobStorageContext> AsWeakPtr() { | 125 base::WeakPtr<BlobStorageContext> AsWeakPtr() { |
| 126 return ptr_factory_.GetWeakPtr(); | 126 return ptr_factory_.GetWeakPtr(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 protected: | 129 protected: |
| 130 friend class content::BlobDispatcherHost; | 130 friend class content::BlobDispatcherHost; |
| 131 friend class content::BlobDispatcherHostTest; | 131 friend class content::BlobDispatcherHostTest; |
| 132 friend class content::BlobStorageBrowserTest; | 132 friend class content::BlobStorageBrowserTest; |
| 133 friend class content::ChromeBlobStorageContext; |
| 133 friend class BlobTransportHost; | 134 friend class BlobTransportHost; |
| 134 friend class BlobTransportHostTest; | 135 friend class BlobTransportHostTest; |
| 135 friend class BlobDataHandle; | 136 friend class BlobDataHandle; |
| 136 friend class BlobDataHandle::BlobDataHandleShared; | 137 friend class BlobDataHandle::BlobDataHandleShared; |
| 137 friend class BlobFlattenerTest; | 138 friend class BlobFlattenerTest; |
| 138 friend class BlobSliceTest; | 139 friend class BlobSliceTest; |
| 139 friend class BlobStorageContextTest; | 140 friend class BlobStorageContextTest; |
| 140 | 141 |
| 141 enum class TransportQuotaType { MEMORY, FILE }; | 142 enum class TransportQuotaType { MEMORY, FILE }; |
| 142 | 143 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 BlobStorageRegistry registry_; | 266 BlobStorageRegistry registry_; |
| 266 BlobMemoryController memory_controller_; | 267 BlobMemoryController memory_controller_; |
| 267 base::WeakPtrFactory<BlobStorageContext> ptr_factory_; | 268 base::WeakPtrFactory<BlobStorageContext> ptr_factory_; |
| 268 | 269 |
| 269 DISALLOW_COPY_AND_ASSIGN(BlobStorageContext); | 270 DISALLOW_COPY_AND_ASSIGN(BlobStorageContext); |
| 270 }; | 271 }; |
| 271 | 272 |
| 272 } // namespace storage | 273 } // namespace storage |
| 273 | 274 |
| 274 #endif // STORAGE_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ | 275 #endif // STORAGE_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ |
| OLD | NEW |