| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_ACTIVE_BLOB_REGISTRY_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_ACTIVE_BLOB_REGISTRY_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_ACTIVE_BLOB_REGISTRY_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_ACTIVE_BLOB_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "storage/common/blob/shareable_file_reference.h" | 15 #include "storage/browser/blob/shareable_file_reference.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 class IndexedDBBackingStore; | 19 class IndexedDBBackingStore; |
| 20 | 20 |
| 21 class CONTENT_EXPORT IndexedDBActiveBlobRegistry { | 21 class CONTENT_EXPORT IndexedDBActiveBlobRegistry { |
| 22 public: | 22 public: |
| 23 explicit IndexedDBActiveBlobRegistry(IndexedDBBackingStore* backing_store); | 23 explicit IndexedDBActiveBlobRegistry(IndexedDBBackingStore* backing_store); |
| 24 ~IndexedDBActiveBlobRegistry(); | 24 ~IndexedDBActiveBlobRegistry(); |
| 25 | 25 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // backing_store_ owns us, so we'll stay alive as long as we're needed. | 66 // backing_store_ owns us, so we'll stay alive as long as we're needed. |
| 67 IndexedDBBackingStore* backing_store_; | 67 IndexedDBBackingStore* backing_store_; |
| 68 base::WeakPtrFactory<IndexedDBActiveBlobRegistry> weak_factory_; | 68 base::WeakPtrFactory<IndexedDBActiveBlobRegistry> weak_factory_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(IndexedDBActiveBlobRegistry); | 70 DISALLOW_COPY_AND_ASSIGN(IndexedDBActiveBlobRegistry); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace content | 73 } // namespace content |
| 74 | 74 |
| 75 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_ACTIVE_BLOB_REGISTRY_H_ | 75 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_ACTIVE_BLOB_REGISTRY_H_ |
| OLD | NEW |