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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 size_t GetConnectionCount(const url::Origin& origin) const override; | 70 size_t GetConnectionCount(const url::Origin& origin) const override; |
71 | 71 |
72 protected: | 72 protected: |
73 ~IndexedDBFactoryImpl() override; | 73 ~IndexedDBFactoryImpl() override; |
74 | 74 |
75 scoped_refptr<IndexedDBBackingStore> OpenBackingStore( | 75 scoped_refptr<IndexedDBBackingStore> OpenBackingStore( |
76 const url::Origin& origin, | 76 const url::Origin& origin, |
77 const base::FilePath& data_directory, | 77 const base::FilePath& data_directory, |
78 net::URLRequestContext* request_context, | 78 net::URLRequestContext* request_context, |
79 blink::WebIDBDataLoss* data_loss, | 79 IndexedDBDataLossInfo* data_loss_info, |
80 std::string* data_loss_reason, | |
81 bool* disk_full, | 80 bool* disk_full, |
82 leveldb::Status* s) override; | 81 leveldb::Status* s) override; |
83 | 82 |
84 scoped_refptr<IndexedDBBackingStore> OpenBackingStoreHelper( | 83 scoped_refptr<IndexedDBBackingStore> OpenBackingStoreHelper( |
85 const url::Origin& origin, | 84 const url::Origin& origin, |
86 const base::FilePath& data_directory, | 85 const base::FilePath& data_directory, |
87 net::URLRequestContext* request_context, | 86 net::URLRequestContext* request_context, |
88 blink::WebIDBDataLoss* data_loss, | 87 IndexedDBDataLossInfo* data_loss_info, |
89 std::string* data_loss_message, | |
90 bool* disk_full, | 88 bool* disk_full, |
91 bool first_time, | 89 bool first_time, |
92 leveldb::Status* s) override; | 90 leveldb::Status* s) override; |
93 | 91 |
94 void ReleaseBackingStore(const url::Origin& origin, bool immediate); | 92 void ReleaseBackingStore(const url::Origin& origin, bool immediate); |
95 void CloseBackingStore(const url::Origin& origin); | 93 void CloseBackingStore(const url::Origin& origin); |
96 IndexedDBContextImpl* context() const { return context_; } | 94 IndexedDBContextImpl* context() const { return context_; } |
97 | 95 |
98 private: | 96 private: |
99 FRIEND_TEST_ALL_PREFIXES(IndexedDBFactoryTest, | 97 FRIEND_TEST_ALL_PREFIXES(IndexedDBFactoryTest, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 std::map<url::Origin, scoped_refptr<IndexedDBBackingStore>> | 131 std::map<url::Origin, scoped_refptr<IndexedDBBackingStore>> |
134 backing_stores_with_active_blobs_; | 132 backing_stores_with_active_blobs_; |
135 std::set<url::Origin> backends_opened_since_boot_; | 133 std::set<url::Origin> backends_opened_since_boot_; |
136 | 134 |
137 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactoryImpl); | 135 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactoryImpl); |
138 }; | 136 }; |
139 | 137 |
140 } // namespace content | 138 } // namespace content |
141 | 139 |
142 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ | 140 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ |
OLD | NEW |