| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_FACTORY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> |
| 9 #include <set> |
| 10 #include <string> |
| 11 |
| 8 #include "content/browser/indexed_db/indexed_db_factory.h" | 12 #include "content/browser/indexed_db/indexed_db_factory.h" |
| 9 | 13 |
| 10 namespace content { | 14 namespace content { |
| 11 | 15 |
| 12 class IndexedDBContextImpl; | 16 class IndexedDBContextImpl; |
| 13 | 17 |
| 14 class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory { | 18 class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory { |
| 15 public: | 19 public: |
| 16 explicit IndexedDBFactoryImpl(IndexedDBContextImpl* context); | 20 explicit IndexedDBFactoryImpl(IndexedDBContextImpl* context); |
| 17 | 21 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 34 net::URLRequestContext* request_context, | 38 net::URLRequestContext* request_context, |
| 35 scoped_refptr<IndexedDBCallbacks> callbacks, | 39 scoped_refptr<IndexedDBCallbacks> callbacks, |
| 36 const GURL& origin_url, | 40 const GURL& origin_url, |
| 37 const base::FilePath& data_directory) OVERRIDE; | 41 const base::FilePath& data_directory) OVERRIDE; |
| 38 | 42 |
| 39 virtual void HandleBackingStoreFailure(const GURL& origin_url) OVERRIDE; | 43 virtual void HandleBackingStoreFailure(const GURL& origin_url) OVERRIDE; |
| 40 virtual void HandleBackingStoreCorruption( | 44 virtual void HandleBackingStoreCorruption( |
| 41 const GURL& origin_url, | 45 const GURL& origin_url, |
| 42 const IndexedDBDatabaseError& error) OVERRIDE; | 46 const IndexedDBDatabaseError& error) OVERRIDE; |
| 43 | 47 |
| 44 virtual std::pair<OriginDBMapIterator, OriginDBMapIterator> | 48 virtual OriginDBs GetOpenDatabasesForOrigin( |
| 45 GetOpenDatabasesForOrigin(const GURL& origin_url) const OVERRIDE; | 49 const GURL& origin_url) const OVERRIDE; |
| 46 | 50 |
| 47 virtual void ForceClose(const GURL& origin_url) OVERRIDE; | 51 virtual void ForceClose(const GURL& origin_url) OVERRIDE; |
| 48 | 52 |
| 49 // Called by the IndexedDBContext destructor so the factory can do cleanup. | 53 // Called by the IndexedDBContext destructor so the factory can do cleanup. |
| 50 virtual void ContextDestroyed() OVERRIDE; | 54 virtual void ContextDestroyed() OVERRIDE; |
| 51 | 55 |
| 52 // Called by the IndexedDBActiveBlobRegistry. | 56 // Called by the IndexedDBActiveBlobRegistry. |
| 53 virtual void ReportOutstandingBlobs(const GURL& origin_url, | 57 virtual void ReportOutstandingBlobs(const GURL& origin_url, |
| 54 bool blobs_outstanding) OVERRIDE; | 58 bool blobs_outstanding) OVERRIDE; |
| 55 | 59 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 std::set<scoped_refptr<IndexedDBBackingStore> > session_only_backing_stores_; | 129 std::set<scoped_refptr<IndexedDBBackingStore> > session_only_backing_stores_; |
| 126 IndexedDBBackingStoreMap backing_stores_with_active_blobs_; | 130 IndexedDBBackingStoreMap backing_stores_with_active_blobs_; |
| 127 std::set<GURL> backends_opened_since_boot_; | 131 std::set<GURL> backends_opened_since_boot_; |
| 128 | 132 |
| 129 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactoryImpl); | 133 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactoryImpl); |
| 130 }; | 134 }; |
| 131 | 135 |
| 132 } // namespace content | 136 } // namespace content |
| 133 | 137 |
| 134 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ | 138 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ |
| OLD | NEW |