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

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

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.cc
diff --git a/content/renderer/cache_storage/cache_storage_dispatcher.cc b/content/renderer/cache_storage/cache_storage_dispatcher.cc
index 4654027accfe7cc544aac9b9f18b9448bd2c4c8b..dd5b25835d55c463ec5777b78644b590b0e22717 100644
--- a/content/renderer/cache_storage/cache_storage_dispatcher.cc
+++ b/content/renderer/cache_storage/cache_storage_dispatcher.cc
@@ -23,6 +23,7 @@
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerCache.h"
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRequest.h"
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerResponse.h"
+#include "url/origin.h"
using base::TimeTicks;
@@ -525,7 +526,7 @@ void CacheStorageDispatcher::OnCacheBatchError(
void CacheStorageDispatcher::dispatchHas(
WebServiceWorkerCacheStorage::CacheStorageCallbacks* callbacks,
- const GURL& origin,
+ const url::Origin& origin,
const blink::WebString& cacheName) {
int request_id = has_callbacks_.Add(callbacks);
has_times_[request_id] = base::TimeTicks::Now();
@@ -535,7 +536,7 @@ void CacheStorageDispatcher::dispatchHas(
void CacheStorageDispatcher::dispatchOpen(
WebServiceWorkerCacheStorage::CacheStorageWithCacheCallbacks* callbacks,
- const GURL& origin,
+ const url::Origin& origin,
const blink::WebString& cacheName) {
int request_id = open_callbacks_.Add(callbacks);
open_times_[request_id] = base::TimeTicks::Now();
@@ -545,7 +546,7 @@ void CacheStorageDispatcher::dispatchOpen(
void CacheStorageDispatcher::dispatchDelete(
WebServiceWorkerCacheStorage::CacheStorageCallbacks* callbacks,
- const GURL& origin,
+ const url::Origin& origin,
const blink::WebString& cacheName) {
int request_id = delete_callbacks_.Add(callbacks);
delete_times_[request_id] = base::TimeTicks::Now();
@@ -555,7 +556,7 @@ void CacheStorageDispatcher::dispatchDelete(
void CacheStorageDispatcher::dispatchKeys(
WebServiceWorkerCacheStorage::CacheStorageKeysCallbacks* callbacks,
- const GURL& origin) {
+ const url::Origin& origin) {
int request_id = keys_callbacks_.Add(callbacks);
keys_times_[request_id] = base::TimeTicks::Now();
Send(new CacheStorageHostMsg_CacheStorageKeys(CurrentWorkerId(), request_id,
@@ -564,7 +565,7 @@ void CacheStorageDispatcher::dispatchKeys(
void CacheStorageDispatcher::dispatchMatch(
WebServiceWorkerCacheStorage::CacheStorageMatchCallbacks* callbacks,
- const GURL& origin,
+ const url::Origin& origin,
const blink::WebServiceWorkerRequest& request,
const blink::WebServiceWorkerCache::QueryParams& query_params) {
int request_id = match_callbacks_.Add(callbacks);

Powered by Google App Engine
This is Rietveld 408576698