OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/shared_memory_data_consumer_handle.h" | 5 #include "content/child/shared_memory_data_consumer_handle.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <deque> | 8 #include <deque> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "content/public/child/fixed_received_data.h" | 18 #include "content/public/child/fixed_received_data.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class DelegateThreadSafeReceivedData final | 24 class DelegateThreadSafeReceivedData final |
25 : public RequestPeer::ThreadSafeReceivedData { | 25 : public RequestPeer::ThreadSafeReceivedData { |
26 public: | 26 public: |
27 explicit DelegateThreadSafeReceivedData( | 27 explicit DelegateThreadSafeReceivedData( |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 SharedMemoryDataConsumerHandle::ReaderImpl* | 475 SharedMemoryDataConsumerHandle::ReaderImpl* |
476 SharedMemoryDataConsumerHandle::obtainReaderInternal(Client* client) { | 476 SharedMemoryDataConsumerHandle::obtainReaderInternal(Client* client) { |
477 return new ReaderImpl(context_, client); | 477 return new ReaderImpl(context_, client); |
478 } | 478 } |
479 | 479 |
480 const char* SharedMemoryDataConsumerHandle::debugName() const { | 480 const char* SharedMemoryDataConsumerHandle::debugName() const { |
481 return "SharedMemoryDataConsumerHandle"; | 481 return "SharedMemoryDataConsumerHandle"; |
482 } | 482 } |
483 | 483 |
484 } // namespace content | 484 } // namespace content |
OLD | NEW |