| 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 CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // Called by an IndexedDBDatabase when it is actually deleted. | 72 // Called by an IndexedDBDatabase when it is actually deleted. |
| 73 virtual void DatabaseDeleted( | 73 virtual void DatabaseDeleted( |
| 74 const IndexedDBDatabase::Identifier& identifier) = 0; | 74 const IndexedDBDatabase::Identifier& identifier) = 0; |
| 75 | 75 |
| 76 virtual size_t GetConnectionCount(const GURL& origin_url) const = 0; | 76 virtual size_t GetConnectionCount(const GURL& origin_url) const = 0; |
| 77 | 77 |
| 78 protected: | 78 protected: |
| 79 friend class base::RefCountedThreadSafe<IndexedDBFactory>; | 79 friend class base::RefCountedThreadSafe<IndexedDBFactory>; |
| 80 | 80 |
| 81 IndexedDBFactory() {} |
| 81 virtual ~IndexedDBFactory() {} | 82 virtual ~IndexedDBFactory() {} |
| 82 | 83 |
| 83 virtual scoped_refptr<IndexedDBBackingStore> OpenBackingStore( | 84 virtual scoped_refptr<IndexedDBBackingStore> OpenBackingStore( |
| 84 const GURL& origin_url, | 85 const GURL& origin_url, |
| 85 const base::FilePath& data_directory, | 86 const base::FilePath& data_directory, |
| 86 net::URLRequestContext* request_context, | 87 net::URLRequestContext* request_context, |
| 87 blink::WebIDBDataLoss* data_loss, | 88 blink::WebIDBDataLoss* data_loss, |
| 88 std::string* data_loss_reason, | 89 std::string* data_loss_reason, |
| 89 bool* disk_full) = 0; | 90 bool* disk_full) = 0; |
| 90 | 91 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 102 ForceCloseOpenDatabasesOnCommitFailure); | 103 ForceCloseOpenDatabasesOnCommitFailure); |
| 103 | 104 |
| 104 virtual bool IsBackingStoreOpen(const GURL& origin_url) const = 0; | 105 virtual bool IsBackingStoreOpen(const GURL& origin_url) const = 0; |
| 105 | 106 |
| 106 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactory); | 107 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactory); |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 } // namespace content | 110 } // namespace content |
| 110 | 111 |
| 111 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 112 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
| OLD | NEW |