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

Side by Side Diff: content/renderer/cache_storage/webserviceworkercachestorage_impl.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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h" 5 #include "content/renderer/cache_storage/webserviceworkercachestorage_impl.h"
6 6
7 #include "content/child/thread_safe_sender.h" 7 #include "content/child/thread_safe_sender.h"
8 #include "content/renderer/cache_storage/cache_storage_dispatcher.h" 8 #include "content/renderer/cache_storage/cache_storage_dispatcher.h"
9 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" 9 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h"
10 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerCache.h" 10 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerCache.h"
11 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerRequest.h" 11 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerRequest.h"
12 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerResponse.h" 12 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerResponse.h"
13 13
14 using base::TimeTicks; 14 using base::TimeTicks;
15 15
16 namespace content { 16 namespace content {
17 17
18 WebServiceWorkerCacheStorageImpl::WebServiceWorkerCacheStorageImpl( 18 WebServiceWorkerCacheStorageImpl::WebServiceWorkerCacheStorageImpl(
19 ThreadSafeSender* thread_safe_sender, 19 ThreadSafeSender* thread_safe_sender,
20 const GURL& origin) 20 const url::Origin& origin)
21 : thread_safe_sender_(thread_safe_sender), origin_(origin) { 21 : thread_safe_sender_(thread_safe_sender), origin_(origin) {}
22 }
23 22
24 WebServiceWorkerCacheStorageImpl::~WebServiceWorkerCacheStorageImpl() { 23 WebServiceWorkerCacheStorageImpl::~WebServiceWorkerCacheStorageImpl() {
25 } 24 }
26 25
27 void WebServiceWorkerCacheStorageImpl::dispatchHas( 26 void WebServiceWorkerCacheStorageImpl::dispatchHas(
28 CacheStorageCallbacks* callbacks, 27 CacheStorageCallbacks* callbacks,
29 const blink::WebString& cacheName) { 28 const blink::WebString& cacheName) {
30 GetDispatcher()->dispatchHas(callbacks, origin_, cacheName); 29 GetDispatcher()->dispatchHas(callbacks, origin_, cacheName);
31 } 30 }
32 31
(...skipping 21 matching lines...) Expand all
54 GetDispatcher()->dispatchMatch(callbacks, origin_, request, query_params); 53 GetDispatcher()->dispatchMatch(callbacks, origin_, request, query_params);
55 } 54 }
56 55
57 CacheStorageDispatcher* WebServiceWorkerCacheStorageImpl::GetDispatcher() 56 CacheStorageDispatcher* WebServiceWorkerCacheStorageImpl::GetDispatcher()
58 const { 57 const {
59 return CacheStorageDispatcher::ThreadSpecificInstance( 58 return CacheStorageDispatcher::ThreadSpecificInstance(
60 thread_safe_sender_.get()); 59 thread_safe_sender_.get());
61 } 60 }
62 61
63 } // namespace content 62 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/cache_storage/webserviceworkercachestorage_impl.h ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698