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

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

Issue 1841553002: IndexedDB: Use url::Origin rather than GURL for representing origins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@origin-idb
Patch Set: Created 4 years, 9 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_database.h
diff --git a/content/browser/indexed_db/indexed_db_database.h b/content/browser/indexed_db/indexed_db_database.h
index 207c1f9c41a8dd7501f961c22f086a93865820e7..7aafe56e3294bf371404fd14f078517335db7409 100644
--- a/content/browser/indexed_db/indexed_db_database.h
+++ b/content/browser/indexed_db/indexed_db_database.h
@@ -24,7 +24,10 @@
#include "content/browser/indexed_db/indexed_db_transaction_coordinator.h"
#include "content/browser/indexed_db/list_set.h"
#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h"
-#include "url/gurl.h"
+
+namespace url {
+class Origin;
+}
namespace content {
@@ -44,8 +47,8 @@ class CONTENT_EXPORT IndexedDBDatabase
// An index and corresponding set of keys
typedef std::pair<int64_t, std::vector<IndexedDBKey>> IndexKeys;
- // Identifier is pair of (origin url, database name).
- typedef std::pair<GURL, base::string16> Identifier;
+ // Identifier is pair of (origin, database name).
+ typedef std::pair<url::Origin, base::string16> Identifier;
cmumford 2016/03/31 20:54:16 using Identifier = std::pair<url::Origin, base::st
jsbell 2016/04/01 20:31:35 Done.
static const int64_t kInvalidId = 0;
static const int64_t kMinimumIndexId = 30;

Powered by Google App Engine
This is Rietveld 408576698