OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void AddObserver(WorkerServiceObserver* observer) override; | 49 void AddObserver(WorkerServiceObserver* observer) override; |
50 void RemoveObserver(WorkerServiceObserver* observer) override; | 50 void RemoveObserver(WorkerServiceObserver* observer) override; |
51 | 51 |
52 // These methods correspond to worker related IPCs. | 52 // These methods correspond to worker related IPCs. |
53 blink::WebWorkerCreationError CreateWorker( | 53 blink::WebWorkerCreationError CreateWorker( |
54 const ViewHostMsg_CreateWorker_Params& params, | 54 const ViewHostMsg_CreateWorker_Params& params, |
55 int route_id, | 55 int route_id, |
56 SharedWorkerMessageFilter* filter, | 56 SharedWorkerMessageFilter* filter, |
57 ResourceContext* resource_context, | 57 ResourceContext* resource_context, |
58 const WorkerStoragePartitionId& partition_id); | 58 const WorkerStoragePartitionId& partition_id); |
59 void ForwardToWorker(const IPC::Message& message, | 59 void ConnectToWorker(int route_id, |
| 60 int sent_message_port_id, |
60 SharedWorkerMessageFilter* filter); | 61 SharedWorkerMessageFilter* filter); |
61 void DocumentDetached(unsigned long long document_id, | 62 void DocumentDetached(unsigned long long document_id, |
62 SharedWorkerMessageFilter* filter); | 63 SharedWorkerMessageFilter* filter); |
63 void WorkerContextClosed(int worker_route_id, | 64 void WorkerContextClosed(int worker_route_id, |
64 SharedWorkerMessageFilter* filter); | 65 SharedWorkerMessageFilter* filter); |
65 void WorkerContextDestroyed(int worker_route_id, | 66 void WorkerContextDestroyed(int worker_route_id, |
66 SharedWorkerMessageFilter* filter); | 67 SharedWorkerMessageFilter* filter); |
67 void WorkerReadyForInspection(int worker_route_id, | 68 void WorkerReadyForInspection(int worker_route_id, |
68 SharedWorkerMessageFilter* filter); | 69 SharedWorkerMessageFilter* filter); |
69 void WorkerScriptLoaded(int worker_route_id, | 70 void WorkerScriptLoaded(int worker_route_id, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 int next_pending_instance_id_; | 173 int next_pending_instance_id_; |
173 | 174 |
174 base::ObserverList<WorkerServiceObserver> observers_; | 175 base::ObserverList<WorkerServiceObserver> observers_; |
175 | 176 |
176 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); | 177 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); |
177 }; | 178 }; |
178 | 179 |
179 } // namespace content | 180 } // namespace content |
180 | 181 |
181 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 182 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
OLD | NEW |