OLD | NEW |
| (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_ | |
OLD | NEW |