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

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

Issue 1039763002: Cache Storage: Move files to content/*/cache_storage, rename classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN fix Created 5 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
« no previous file with comments | « content/renderer/cache_storage/OWNERS ('k') | content/renderer/cache_storage/cache_storage_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/cache_storage/cache_storage_dispatcher.h
diff --git a/content/renderer/service_worker/service_worker_cache_storage_dispatcher.h b/content/renderer/cache_storage/cache_storage_dispatcher.h
similarity index 92%
rename from content/renderer/service_worker/service_worker_cache_storage_dispatcher.h
rename to content/renderer/cache_storage/cache_storage_dispatcher.h
index c298e01d5c8a7fed493a6d0dae387ebf9c761894..16f660581546b40e4a487a93deb0fe8a0816c46c 100644
--- a/content/renderer/service_worker/service_worker_cache_storage_dispatcher.h
+++ b/content/renderer/cache_storage/cache_storage_dispatcher.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_DISPATCHER_H_
-#define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_DISPATCHER_H_
+#ifndef CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_
+#define CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_
#include <vector>
@@ -20,22 +20,20 @@
namespace content {
-class ServiceWorkerScriptContext;
class ThreadSafeSender;
struct ServiceWorkerFetchRequest;
struct ServiceWorkerResponse;
// Handle the Cache Storage messaging for this context thread. The
// main thread and each worker thread have their own instances.
-class ServiceWorkerCacheStorageDispatcher : public WorkerTaskRunner::Observer {
+class CacheStorageDispatcher : public WorkerTaskRunner::Observer {
public:
- explicit ServiceWorkerCacheStorageDispatcher(
- ThreadSafeSender* thread_safe_sender);
- ~ServiceWorkerCacheStorageDispatcher() override;
+ explicit CacheStorageDispatcher(ThreadSafeSender* thread_safe_sender);
+ ~CacheStorageDispatcher() override;
// |thread_safe_sender| needs to be passed in because if the call leads to
// construction it will be needed.
- static ServiceWorkerCacheStorageDispatcher* ThreadSpecificInstance(
+ static CacheStorageDispatcher* ThreadSpecificInstance(
ThreadSafeSender* thread_safe_sender);
// WorkerTaskRunner::Observer implementation.
@@ -214,11 +212,11 @@ class ServiceWorkerCacheStorageDispatcher : public WorkerTaskRunner::Observer {
TimeMap cache_keys_times_;
TimeMap cache_batch_times_;
- base::WeakPtrFactory<ServiceWorkerCacheStorageDispatcher> weak_factory_;
+ base::WeakPtrFactory<CacheStorageDispatcher> weak_factory_;
- DISALLOW_COPY_AND_ASSIGN(ServiceWorkerCacheStorageDispatcher);
+ DISALLOW_COPY_AND_ASSIGN(CacheStorageDispatcher);
};
} // namespace content
-#endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CACHE_STORAGE_DISPATCHER_H_
+#endif // CONTENT_RENDERER_CACHE_STORAGE_CACHE_STORAGE_DISPATCHER_H_
« no previous file with comments | « content/renderer/cache_storage/OWNERS ('k') | content/renderer/cache_storage/cache_storage_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698