OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_MESSAGE_FILTER_H_ |
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_MESSAGE_FILTER_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include "content/child/child_message_filter.h" | 8 #include "content/child/child_message_filter.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 // ChildMessageFilter implementation: | 30 // ChildMessageFilter implementation: |
31 virtual base::TaskRunner* OverrideTaskRunnerForMessage( | 31 virtual base::TaskRunner* OverrideTaskRunnerForMessage( |
32 const IPC::Message& msg) OVERRIDE; | 32 const IPC::Message& msg) OVERRIDE; |
33 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 33 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
34 virtual void OnStaleMessageReceived(const IPC::Message& msg) OVERRIDE; | 34 virtual void OnStaleMessageReceived(const IPC::Message& msg) OVERRIDE; |
35 | 35 |
36 // Message handlers for stale messages. | 36 // Message handlers for stale messages. |
37 void OnStaleRegistered( | 37 void OnStaleRegistered( |
38 int thread_id, | 38 int thread_id, |
39 int request_id, | 39 int request_id, |
| 40 int registration_handle_id, |
40 const ServiceWorkerObjectInfo& info); | 41 const ServiceWorkerObjectInfo& info); |
41 void OnStaleSetVersionAttributes( | 42 void OnStaleSetVersionAttributes( |
42 int thread_id, | 43 int thread_id, |
43 int provider_id, | 44 int provider_id, |
| 45 int registration_handle_id, |
44 int changed_mask, | 46 int changed_mask, |
45 const ServiceWorkerVersionAttributes& attributes); | 47 const ServiceWorkerVersionAttributes& attributes); |
46 void OnStaleSetControllerServiceWorker( | 48 void OnStaleSetControllerServiceWorker( |
47 int thread_id, | 49 int thread_id, |
48 int provider_id, | 50 int provider_id, |
49 const ServiceWorkerObjectInfo& info); | 51 const ServiceWorkerObjectInfo& info); |
50 | 52 |
51 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_; | 53 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_; |
52 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 54 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
53 | 55 |
54 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerMessageFilter); | 56 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerMessageFilter); |
55 }; | 57 }; |
56 | 58 |
57 } // namespace content | 59 } // namespace content |
58 | 60 |
59 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_MESSAGE_FILTER_H_ | 61 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_MESSAGE_FILTER_H_ |
OLD | NEW |