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

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: Rebased Created 4 years, 8 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 0540a6f088d9c38c22a7126f05f62c36b8e99917..2a6615f744b3df1734620c2e44a0b43976056c08 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 {
@@ -42,10 +45,10 @@ class CONTENT_EXPORT IndexedDBDatabase
: NON_EXPORTED_BASE(public base::RefCounted<IndexedDBDatabase>) {
public:
// An index and corresponding set of keys
- typedef std::pair<int64_t, std::vector<IndexedDBKey>> IndexKeys;
+ using IndexKeys = std::pair<int64_t, std::vector<IndexedDBKey>>;
- // Identifier is pair of (origin url, database name).
- typedef std::pair<GURL, base::string16> Identifier;
+ // Identifier is pair of (origin, database name).
+ using Identifier = std::pair<url::Origin, base::string16>;
static const int64_t kInvalidId = 0;
static const int64_t kMinimumIndexId = 30;
« no previous file with comments | « content/browser/indexed_db/indexed_db_context_impl.cc ('k') | content/browser/indexed_db/indexed_db_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698