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

Unified Diff: content/browser/indexed_db/indexed_db_factory.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_factory.h
diff --git a/content/browser/indexed_db/indexed_db_factory.h b/content/browser/indexed_db/indexed_db_factory.h
index bcbf4b51c0950cef5786537e137ee2d7d8cdd030..1ac6625ee683f2d6ef19f84cc6c282363ce437da 100644
--- a/content/browser/indexed_db/indexed_db_factory.h
+++ b/content/browser/indexed_db/indexed_db_factory.h
@@ -35,7 +35,7 @@ struct IndexedDBPendingConnection;
class CONTENT_EXPORT IndexedDBFactory
: NON_EXPORTED_BASE(public base::RefCountedThreadSafe<IndexedDBFactory>) {
public:
- typedef std::multimap<GURL, IndexedDBDatabase*> OriginDBMap;
+ typedef std::multimap<url::Origin, IndexedDBDatabase*> OriginDBMap;
typedef OriginDBMap::const_iterator OriginDBMapIterator;
typedef std::pair<OriginDBMapIterator, OriginDBMapIterator> OriginDBs;
@@ -58,27 +58,28 @@ class CONTENT_EXPORT IndexedDBFactory
const url::Origin& origin,
const base::FilePath& data_directory) = 0;
- virtual void HandleBackingStoreFailure(const GURL& origin_url) = 0;
+ virtual void HandleBackingStoreFailure(const url::Origin& origin) = 0;
virtual void HandleBackingStoreCorruption(
- const GURL& origin_url,
+ const url::Origin& origin,
const IndexedDBDatabaseError& error) = 0;
- virtual OriginDBs GetOpenDatabasesForOrigin(const GURL& origin_url) const = 0;
+ virtual OriginDBs GetOpenDatabasesForOrigin(
+ const url::Origin& origin) const = 0;
- virtual void ForceClose(const GURL& origin_url) = 0;
+ virtual void ForceClose(const url::Origin& origin) = 0;
// Called by the IndexedDBContext destructor so the factory can do cleanup.
virtual void ContextDestroyed() = 0;
// Called by the IndexedDBActiveBlobRegistry.
- virtual void ReportOutstandingBlobs(const GURL& origin_url,
+ virtual void ReportOutstandingBlobs(const url::Origin& origin,
bool blobs_outstanding) = 0;
// Called by an IndexedDBDatabase when it is actually deleted.
virtual void DatabaseDeleted(
const IndexedDBDatabase::Identifier& identifier) = 0;
- virtual size_t GetConnectionCount(const GURL& origin_url) const = 0;
+ virtual size_t GetConnectionCount(const url::Origin& origin) const = 0;
protected:
friend class base::RefCountedThreadSafe<IndexedDBFactory>;
@@ -87,7 +88,7 @@ class CONTENT_EXPORT IndexedDBFactory
virtual ~IndexedDBFactory() {}
virtual scoped_refptr<IndexedDBBackingStore> OpenBackingStore(
- const GURL& origin_url,
+ const url::Origin& origin,
const base::FilePath& data_directory,
net::URLRequestContext* request_context,
blink::WebIDBDataLoss* data_loss,
@@ -96,7 +97,7 @@ class CONTENT_EXPORT IndexedDBFactory
leveldb::Status* status) = 0;
virtual scoped_refptr<IndexedDBBackingStore> OpenBackingStoreHelper(
- const GURL& origin_url,
+ const url::Origin& origin,
const base::FilePath& data_directory,
net::URLRequestContext* request_context,
blink::WebIDBDataLoss* data_loss,
« no previous file with comments | « content/browser/indexed_db/indexed_db_dispatcher_host.cc ('k') | content/browser/indexed_db/indexed_db_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698