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

Unified Diff: content/browser/indexed_db/indexed_db_database.h

Issue 2519073003: IndexedDB: IndexedDBDatabase::Create() returning db/status tuple. (Closed)
Patch Set: Swapped db/s to reflect order in tuple Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_database.h
diff --git a/content/browser/indexed_db/indexed_db_database.h b/content/browser/indexed_db/indexed_db_database.h
index 49cf2372f38e41df9118d84056c667a0660cd129..7e8b852e28332518f5cd3ce7ba8e42823a999d33 100644
--- a/content/browser/indexed_db/indexed_db_database.h
+++ b/content/browser/indexed_db/indexed_db_database.h
@@ -13,6 +13,7 @@
#include <memory>
#include <queue>
#include <string>
+#include <tuple>
#include <utility>
#include <vector>
@@ -53,12 +54,11 @@ class CONTENT_EXPORT IndexedDBDatabase
static const int64_t kInvalidId = 0;
static const int64_t kMinimumIndexId = 30;
- static scoped_refptr<IndexedDBDatabase> Create(
+ static std::tuple<scoped_refptr<IndexedDBDatabase>, leveldb::Status> Create(
const base::string16& name,
IndexedDBBackingStore* backing_store,
IndexedDBFactory* factory,
- const Identifier& unique_identifier,
- leveldb::Status* s);
+ const Identifier& unique_identifier);
const Identifier& identifier() const { return identifier_; }
IndexedDBBackingStore* backing_store() { return backing_store_.get(); }
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698