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/child/threaded_data_provider.h" | 5 #include "content/child/threaded_data_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/location.h" | 9 #include "base/location.h" |
8 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
9 #include "components/scheduler/child/webthread_impl_for_worker_scheduler.h" | 11 #include "components/scheduler/child/webthread_impl_for_worker_scheduler.h" |
10 #include "content/child/child_process.h" | 12 #include "content/child/child_process.h" |
11 #include "content/child/child_thread_impl.h" | 13 #include "content/child/child_thread_impl.h" |
12 #include "content/child/resource_dispatcher.h" | 14 #include "content/child/resource_dispatcher.h" |
13 #include "content/child/thread_safe_sender.h" | 15 #include "content/child/thread_safe_sender.h" |
14 #include "content/common/resource_messages.h" | 16 #include "content/common/resource_messages.h" |
15 #include "ipc/ipc_sync_channel.h" | 17 #include "ipc/ipc_sync_channel.h" |
16 #include "third_party/WebKit/public/platform/WebThread.h" | 18 #include "third_party/WebKit/public/platform/WebThread.h" |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 DCHECK(threaded_data_receiver_->needsMainthreadDataCopy()); | 343 DCHECK(threaded_data_receiver_->needsMainthreadDataCopy()); |
342 DCHECK_EQ((size_t)data_length, data_copy->size()); | 344 DCHECK_EQ((size_t)data_length, data_copy->size()); |
343 } | 345 } |
344 | 346 |
345 threaded_data_receiver_->acceptMainthreadDataNotification( | 347 threaded_data_receiver_->acceptMainthreadDataNotification( |
346 (data_copy && !data_copy->empty()) ? &data_copy->front() : NULL, | 348 (data_copy && !data_copy->empty()) ? &data_copy->front() : NULL, |
347 data_length, encoded_data_length); | 349 data_length, encoded_data_length); |
348 } | 350 } |
349 | 351 |
350 } // namespace content | 352 } // namespace content |
OLD | NEW |