| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WORKER_HOST_WORKER_SERVICE_H_ | 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ |
| 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ | 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 WorkerMessageFilter* filter, | 45 WorkerMessageFilter* filter, |
| 46 ResourceContext* resource_context, | 46 ResourceContext* resource_context, |
| 47 const WorkerStoragePartition& worker_partition); | 47 const WorkerStoragePartition& worker_partition); |
| 48 void LookupSharedWorker(const ViewHostMsg_CreateWorker_Params& params, | 48 void LookupSharedWorker(const ViewHostMsg_CreateWorker_Params& params, |
| 49 int route_id, | 49 int route_id, |
| 50 WorkerMessageFilter* filter, | 50 WorkerMessageFilter* filter, |
| 51 ResourceContext* resource_context, | 51 ResourceContext* resource_context, |
| 52 const WorkerStoragePartition& worker_partition, | 52 const WorkerStoragePartition& worker_partition, |
| 53 bool* exists, | 53 bool* exists, |
| 54 bool* url_error); | 54 bool* url_error); |
| 55 void CancelCreateDedicatedWorker(int route_id, WorkerMessageFilter* filter); | |
| 56 void ForwardToWorker(const IPC::Message& message, | 55 void ForwardToWorker(const IPC::Message& message, |
| 57 WorkerMessageFilter* filter); | 56 WorkerMessageFilter* filter); |
| 58 void DocumentDetached(unsigned long long document_id, | 57 void DocumentDetached(unsigned long long document_id, |
| 59 WorkerMessageFilter* filter); | 58 WorkerMessageFilter* filter); |
| 60 | 59 |
| 61 void OnWorkerMessageFilterClosing(WorkerMessageFilter* filter); | 60 void OnWorkerMessageFilterClosing(WorkerMessageFilter* filter); |
| 62 | 61 |
| 63 int next_worker_route_id() { return ++next_worker_route_id_; } | 62 int next_worker_route_id() { return ++next_worker_route_id_; } |
| 64 | 63 |
| 65 // Given a worker's process id, return the IDs of the renderer process and | 64 // Given a worker's process id, return the IDs of the renderer process and |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 WorkerProcessHost::Instances pending_shared_workers_; | 140 WorkerProcessHost::Instances pending_shared_workers_; |
| 142 | 141 |
| 143 ObserverList<WorkerServiceObserver> observers_; | 142 ObserverList<WorkerServiceObserver> observers_; |
| 144 | 143 |
| 145 DISALLOW_COPY_AND_ASSIGN(WorkerServiceImpl); | 144 DISALLOW_COPY_AND_ASSIGN(WorkerServiceImpl); |
| 146 }; | 145 }; |
| 147 | 146 |
| 148 } // namespace content | 147 } // namespace content |
| 149 | 148 |
| 150 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ | 149 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ |
| OLD | NEW |