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

Unified Diff: content/renderer/cache_storage/cache_storage_dispatcher.h

Issue 1826103002: CacheStorage: Pass url::Origin rather than GURL over IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@origin-idb
Patch Set: Add missing include 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/renderer/cache_storage/cache_storage_dispatcher.h
diff --git a/content/renderer/cache_storage/cache_storage_dispatcher.h b/content/renderer/cache_storage/cache_storage_dispatcher.h
index a43757d0f82aae56913aa563b90648ff81e36fe4..88a393378b75404f7e722f7d7dcaa8058a013f7e 100644
--- a/content/renderer/cache_storage/cache_storage_dispatcher.h
+++ b/content/renderer/cache_storage/cache_storage_dispatcher.h
@@ -20,6 +20,10 @@
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerCacheError.h"
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h"
+namespace url {
+class Origin;
+}
+
namespace content {
class ThreadSafeSender;
@@ -105,24 +109,24 @@ class CacheStorageDispatcher : public WorkerThread::Observer {
// and should be renamed to match Chromium conventions. crbug.com/439389
void dispatchHas(
blink::WebServiceWorkerCacheStorage::CacheStorageCallbacks* callbacks,
- const GURL& origin,
+ const url::Origin& origin,
const blink::WebString& cacheName);
void dispatchOpen(
blink::WebServiceWorkerCacheStorage::CacheStorageWithCacheCallbacks*
callbacks,
- const GURL& origin,
+ const url::Origin& origin,
const blink::WebString& cacheName);
void dispatchDelete(
blink::WebServiceWorkerCacheStorage::CacheStorageCallbacks* callbacks,
- const GURL& origin,
+ const url::Origin& origin,
const blink::WebString& cacheName);
void dispatchKeys(
blink::WebServiceWorkerCacheStorage::CacheStorageKeysCallbacks* callbacks,
- const GURL& origin);
+ const url::Origin& origin);
void dispatchMatch(
blink::WebServiceWorkerCacheStorage::CacheStorageMatchCallbacks*
callbacks,
- const GURL& origin,
+ const url::Origin& origin,
const blink::WebServiceWorkerRequest& request,
const blink::WebServiceWorkerCache::QueryParams& query_params);
« no previous file with comments | « content/common/cache_storage/cache_storage_messages.h ('k') | content/renderer/cache_storage/cache_storage_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698