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

Side by Side Diff: content/renderer/service_worker/cache_storage_message_filter.h

Issue 992353003: Decouple Cache Storage messaging from Service Worker/Embedded Worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_CACHE_STORAGE_MESSAGE_FILTER_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_CACHE_STORAGE_MESSAGE_FILTER_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "content/child/worker_thread_message_filter.h"
10
11 namespace content {
12
13 class CacheStorageMessageFilter : public WorkerThreadMessageFilter {
14 public:
15 explicit CacheStorageMessageFilter(ThreadSafeSender* thread_safe_sender);
16
17 protected:
18 ~CacheStorageMessageFilter() override;
19
20 private:
21 // WorkerThreadMessageFilter:
22 bool ShouldHandleMessage(const IPC::Message& msg) const override;
23 void OnFilteredMessageReceived(const IPC::Message& msg) override;
24 bool GetWorkerThreadIdForMessage(const IPC::Message& msg,
25 int* ipc_thread_id) override;
26
27 DISALLOW_COPY_AND_ASSIGN(CacheStorageMessageFilter);
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_RENDERER_SERVICE_WORKER_CACHE_STORAGE_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/service_worker/cache_storage_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698