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 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h" | 5 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 for (PendingChannelList::const_iterator iter = pending_channels_.begin(); | 202 for (PendingChannelList::const_iterator iter = pending_channels_.begin(); |
203 iter != pending_channels_.end(); | 203 iter != pending_channels_.end(); |
204 ++iter) { | 204 ++iter) { |
205 blink::WebMessagePortChannel* channel = *iter; | 205 blink::WebMessagePortChannel* channel = *iter; |
206 channel->destroy(); | 206 channel->destroy(); |
207 } | 207 } |
208 pending_channels_.clear(); | 208 pending_channels_.clear(); |
209 Shutdown(); | 209 Shutdown(); |
210 } | 210 } |
211 | 211 |
| 212 void EmbeddedSharedWorkerStub::countFeature(uint32_t use_counter_id) { |
| 213 Send(new WorkerHostMsg_CountFeature(route_id_, use_counter_id)); |
| 214 } |
| 215 |
212 void EmbeddedSharedWorkerStub::workerContextClosed() { | 216 void EmbeddedSharedWorkerStub::workerContextClosed() { |
213 Send(new WorkerHostMsg_WorkerContextClosed(route_id_)); | 217 Send(new WorkerHostMsg_WorkerContextClosed(route_id_)); |
214 } | 218 } |
215 | 219 |
216 void EmbeddedSharedWorkerStub::workerContextDestroyed() { | 220 void EmbeddedSharedWorkerStub::workerContextDestroyed() { |
217 Send(new WorkerHostMsg_WorkerContextDestroyed(route_id_)); | 221 Send(new WorkerHostMsg_WorkerContextDestroyed(route_id_)); |
218 Shutdown(); | 222 Shutdown(); |
219 } | 223 } |
220 | 224 |
221 void EmbeddedSharedWorkerStub::selectAppCacheID(long long app_cache_id) { | 225 void EmbeddedSharedWorkerStub::selectAppCacheID(long long app_cache_id) { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 } | 322 } |
319 } | 323 } |
320 | 324 |
321 void EmbeddedSharedWorkerStub::OnTerminateWorkerContext() { | 325 void EmbeddedSharedWorkerStub::OnTerminateWorkerContext() { |
322 // After this we wouldn't get any IPC for this stub. | 326 // After this we wouldn't get any IPC for this stub. |
323 running_ = false; | 327 running_ = false; |
324 impl_->terminateWorkerContext(); | 328 impl_->terminateWorkerContext(); |
325 } | 329 } |
326 | 330 |
327 } // namespace content | 331 } // namespace content |
OLD | NEW |