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

Unified Diff: content/browser/indexed_db/indexed_db_leveldb_coding.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
Index: content/browser/indexed_db/indexed_db_leveldb_coding.h
diff --git a/content/browser/indexed_db/indexed_db_leveldb_coding.h b/content/browser/indexed_db/indexed_db_leveldb_coding.h
index e301562ca0f3a2a2942d642208a202643f67e187..caa932e97fe24be8fda3255b22f1edb407f0cae4 100644
--- a/content/browser/indexed_db/indexed_db_leveldb_coding.h
+++ b/content/browser/indexed_db/indexed_db_leveldb_coding.h
@@ -194,10 +194,13 @@ class DatabaseNameKey {
static const char* Decode(const char* start,
const char* limit,
DatabaseNameKey* result);
- CONTENT_EXPORT static std::vector<char> Encode(const string16& origin,
- const string16& database_name);
- static std::vector<char> EncodeMinKeyForOrigin(const string16& origin);
- static std::vector<char> EncodeStopKeyForOrigin(const string16& origin);
+ CONTENT_EXPORT static std::vector<char> Encode(
+ const std::string& origin_identifier,
+ const string16& database_name);
+ static std::vector<char> EncodeMinKeyForOrigin(
+ const std::string& origin_identifier);
+ static std::vector<char> EncodeStopKeyForOrigin(
+ const std::string& origin_identifier);
string16 origin() const { return origin_; }
string16 database_name() const { return database_name_; }
int Compare(const DatabaseNameKey& other);
@@ -337,9 +340,8 @@ class ObjectStoreNamesKey {
string16 object_store_name() const { return object_store_name_; }
private:
- string16
- object_store_name_; // TODO(jsbell): Store the encoded string, or just
- // pointers to it.
+ // TODO(jsbell): Store the encoded string, or just pointers to it.
+ string16 object_store_name_;
};
class IndexNamesKey {
« no previous file with comments | « content/browser/indexed_db/indexed_db_fake_backing_store.h ('k') | content/browser/indexed_db/indexed_db_leveldb_coding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698