| 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 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/callback_forward.h" | 16 #include "base/callback_forward.h" |
| 17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 21 #include "storage/browser/blob/blob_data_handle.h" | 21 #include "storage/browser/blob/blob_data_handle.h" |
| 22 #include "storage/browser/blob/blob_entry.h" | 22 #include "storage/browser/blob/blob_entry.h" |
| 23 #include "storage/browser/blob/blob_memory_controller.h" | 23 #include "storage/browser/blob/blob_memory_controller.h" |
| 24 #include "storage/browser/blob/blob_storage_registry.h" | 24 #include "storage/browser/blob/blob_storage_registry.h" |
| 25 #include "storage/browser/storage_browser_export.h" | 25 #include "storage/browser/storage_browser_export.h" |
| 26 #include "storage/common/blob_storage/blob_storage_constants.h" | 26 #include "storage/common/blob_storage/blob_storage_constants.h" |
| 27 | 27 |
| 28 class GURL; | 28 class GURL; |
| 29 | 29 |
| 30 namespace base { | |
| 31 class FilePath; | |
| 32 class Time; | |
| 33 class TaskRunner; | |
| 34 } | |
| 35 | |
| 36 namespace content { | 30 namespace content { |
| 37 class BlobDispatcherHost; | 31 class BlobDispatcherHost; |
| 38 class BlobDispatcherHostTest; | 32 class BlobDispatcherHostTest; |
| 39 class BlobStorageBrowserTest; | 33 class BlobStorageBrowserTest; |
| 40 } | 34 } |
| 41 | 35 |
| 42 namespace storage { | 36 namespace storage { |
| 43 class BlobDataBuilder; | 37 class BlobDataBuilder; |
| 44 class BlobDataHandle; | 38 class BlobDataHandle; |
| 45 class BlobDataItem; | |
| 46 class BlobDataSnapshot; | 39 class BlobDataSnapshot; |
| 47 class ShareableBlobDataItem; | 40 class ShareableBlobDataItem; |
| 48 | 41 |
| 49 // This class handles the logistics of blob storage within the browser process. | 42 // This class handles the logistics of blob storage within the browser process. |
| 50 // This class is not threadsafe, access on IO thread. In Chromium there is one | 43 // This class is not threadsafe, access on IO thread. In Chromium there is one |
| 51 // instance per profile. | 44 // instance per profile. |
| 52 class STORAGE_EXPORT BlobStorageContext { | 45 class STORAGE_EXPORT BlobStorageContext { |
| 53 public: | 46 public: |
| 54 using TransportAllowedCallback = BlobEntry::TransportAllowedCallback; | 47 using TransportAllowedCallback = BlobEntry::TransportAllowedCallback; |
| 55 | 48 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 BlobStorageRegistry registry_; | 258 BlobStorageRegistry registry_; |
| 266 BlobMemoryController memory_controller_; | 259 BlobMemoryController memory_controller_; |
| 267 base::WeakPtrFactory<BlobStorageContext> ptr_factory_; | 260 base::WeakPtrFactory<BlobStorageContext> ptr_factory_; |
| 268 | 261 |
| 269 DISALLOW_COPY_AND_ASSIGN(BlobStorageContext); | 262 DISALLOW_COPY_AND_ASSIGN(BlobStorageContext); |
| 270 }; | 263 }; |
| 271 | 264 |
| 272 } // namespace storage | 265 } // namespace storage |
| 273 | 266 |
| 274 #endif // STORAGE_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ | 267 #endif // STORAGE_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ |
| OLD | NEW |