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

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

Issue 16870007: Switch database/file_identifier to std::string, remove createFromDatabaseIdentifier calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.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_backing_store.h
diff --git a/content/browser/indexed_db/indexed_db_backing_store.h b/content/browser/indexed_db/indexed_db_backing_store.h
index 65f210c03d0e09ec0fcfeb547c7021f45d3b4041..eea35edc8a8361a6f9da4a97c7b69878e52eb6d0 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_backing_store.h
@@ -43,20 +43,21 @@ class CONTENT_EXPORT IndexedDBBackingStore
class CONTENT_EXPORT Transaction;
static scoped_refptr<IndexedDBBackingStore> Open(
- const string16& database_identifier,
+ const std::string& origin_identifier,
const base::FilePath& path_base,
- const string16& file_identifier,
+ const std::string& file_identifier,
WebKit::WebIDBCallbacks::DataLoss* data_loss);
+
static scoped_refptr<IndexedDBBackingStore> Open(
- const string16& database_identifier,
+ const std::string& origin_identifier,
const base::FilePath& path_base,
- const string16& file_identifier,
+ const std::string& file_identifier,
WebKit::WebIDBCallbacks::DataLoss* data_loss,
LevelDBFactory* factory);
static scoped_refptr<IndexedDBBackingStore> OpenInMemory(
- const string16& identifier);
+ const std::string& file_identifier);
static scoped_refptr<IndexedDBBackingStore> OpenInMemory(
- const string16& identifier,
+ const std::string& file_identifier,
LevelDBFactory* factory);
base::WeakPtr<IndexedDBBackingStore> GetWeakPtr() {
return weak_factory_.GetWeakPtr();
@@ -289,7 +290,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
};
protected:
- IndexedDBBackingStore(const string16& identifier,
+ IndexedDBBackingStore(const std::string& identifier,
scoped_ptr<LevelDBDatabase> db,
scoped_ptr<LevelDBComparator> comparator);
virtual ~IndexedDBBackingStore();
@@ -297,7 +298,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
private:
static scoped_refptr<IndexedDBBackingStore> Create(
- const string16& identifier,
+ const std::string& identifier,
scoped_ptr<LevelDBDatabase> db,
scoped_ptr<LevelDBComparator> comparator);
@@ -313,7 +314,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
IndexedDBObjectStoreMetadata::IndexMap* map)
WARN_UNUSED_RESULT;
- string16 identifier_;
+ std::string identifier_;
scoped_ptr<LevelDBDatabase> db_;
scoped_ptr<LevelDBComparator> comparator_;
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698