Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: content/browser/indexed_db/indexed_db_database.h

Issue 2642943002: Allow closing IndexedDB database before deleting (Closed)
Patch Set: Allow closing IndexedDB database before deleting Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_DATABASE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void SetObjectStoreName(int64_t object_store_id, const base::string16& name); 72 void SetObjectStoreName(int64_t object_store_id, const base::string16& name);
73 void AddIndex(int64_t object_store_id, 73 void AddIndex(int64_t object_store_id,
74 const IndexedDBIndexMetadata& metadata, 74 const IndexedDBIndexMetadata& metadata,
75 int64_t new_max_index_id); 75 int64_t new_max_index_id);
76 void RemoveIndex(int64_t object_store_id, int64_t index_id); 76 void RemoveIndex(int64_t object_store_id, int64_t index_id);
77 void SetIndexName(int64_t object_store_id, 77 void SetIndexName(int64_t object_store_id,
78 int64_t index_id, 78 int64_t index_id,
79 const base::string16& name); 79 const base::string16& name);
80 80
81 void OpenConnection(std::unique_ptr<IndexedDBPendingConnection> connection); 81 void OpenConnection(std::unique_ptr<IndexedDBPendingConnection> connection);
82 void DeleteDatabase(scoped_refptr<IndexedDBCallbacks> callbacks); 82 void DeleteDatabase(scoped_refptr<IndexedDBCallbacks> callbacks,
83 bool force_close);
83 const IndexedDBDatabaseMetadata& metadata() const { return metadata_; } 84 const IndexedDBDatabaseMetadata& metadata() const { return metadata_; }
84 85
85 void CreateObjectStore(IndexedDBTransaction* transaction, 86 void CreateObjectStore(IndexedDBTransaction* transaction,
86 int64_t object_store_id, 87 int64_t object_store_id,
87 const base::string16& name, 88 const base::string16& name,
88 const IndexedDBKeyPath& key_path, 89 const IndexedDBKeyPath& key_path,
89 bool auto_increment); 90 bool auto_increment);
90 void DeleteObjectStore(IndexedDBTransaction* transaction, 91 void DeleteObjectStore(IndexedDBTransaction* transaction,
91 int64_t object_store_id); 92 int64_t object_store_id);
92 void RenameObjectStore(IndexedDBTransaction* transaction, 93 void RenameObjectStore(IndexedDBTransaction* transaction,
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // is executing. It prevents rentrant calls if the active request completes 345 // is executing. It prevents rentrant calls if the active request completes
345 // synchronously. 346 // synchronously.
346 bool processing_pending_requests_ = false; 347 bool processing_pending_requests_ = false;
347 348
348 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); 349 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase);
349 }; 350 };
350 351
351 } // namespace content 352 } // namespace content
352 353
353 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ 354 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_database.cc » ('j') | content/browser/indexed_db/indexed_db_factory_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698