Index: content/browser/indexed_db/indexed_db_factory.h |
diff --git a/content/browser/indexed_db/indexed_db_factory.h b/content/browser/indexed_db/indexed_db_factory.h |
index 0d02964985d7348129df4ad4beb86ebc92c43ebe..efd88382adfe68e5f4e573addf9b161f0ac23835 100644 |
--- a/content/browser/indexed_db/indexed_db_factory.h |
+++ b/content/browser/indexed_db/indexed_db_factory.h |
@@ -19,6 +19,14 @@ |
#include "content/browser/indexed_db/indexed_db_factory.h" |
#include "content/common/content_export.h" |
+namespace base { |
+class TaskRunner; |
+} |
+ |
+namespace net { |
+class URLRequestContext; |
+} |
+ |
namespace content { |
class IndexedDBBackingStore; |
@@ -34,19 +42,25 @@ class CONTENT_EXPORT IndexedDBFactory |
void GetDatabaseNames(scoped_refptr<IndexedDBCallbacks> callbacks, |
const std::string& origin_identifier, |
- const base::FilePath& data_directory); |
+ const base::FilePath& data_directory, |
+ base::TaskRunner* task_runner); |
void Open(const string16& name, |
int64 version, |
+ net::URLRequestContext* request_context, |
int64 transaction_id, |
scoped_refptr<IndexedDBCallbacks> callbacks, |
scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks, |
const std::string& origin_identifier, |
- const base::FilePath& data_directory); |
+ const base::FilePath& data_directory, |
+ int child_process_id, |
+ base::TaskRunner* task_runner); |
void DeleteDatabase(const string16& name, |
+ net::URLRequestContext* request_context, |
scoped_refptr<IndexedDBCallbacks> callbacks, |
const std::string& origin_identifier, |
- const base::FilePath& data_directory); |
+ const base::FilePath& data_directory, |
+ base::TaskRunner* task_runner); |
// Iterates over all databases; for diagnostics only. |
std::vector<IndexedDBDatabase*> GetOpenDatabasesForOrigin( |
@@ -60,7 +74,9 @@ class CONTENT_EXPORT IndexedDBFactory |
scoped_refptr<IndexedDBBackingStore> OpenBackingStore( |
const std::string& origin_identifier, |
const base::FilePath& data_directory, |
- WebKit::WebIDBCallbacks::DataLoss* data_loss); |
+ net::URLRequestContext* request_context, |
+ WebKit::WebIDBCallbacks::DataLoss* data_loss, |
+ base::TaskRunner* task_runner); |
private: |
typedef std::map<IndexedDBDatabase::Identifier, |
@@ -72,6 +88,7 @@ class CONTENT_EXPORT IndexedDBFactory |
IndexedDBBackingStoreMap backing_store_map_; |
std::set<scoped_refptr<IndexedDBBackingStore> > session_only_backing_stores_; |
+ std::set<std::string> backends_opened_since_boot_; |
}; |
} // namespace content |