| 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_CHILD_THREADEDDATAPROVIDER_IMPL_H_ | 5 #ifndef CONTENT_CHILD_THREADEDDATAPROVIDER_IMPL_H_ |
| 6 #define CONTENT_CHILD_THREADEDDATAPROVIDER_IMPL_H_ | 6 #define CONTENT_CHILD_THREADEDDATAPROVIDER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/shared_memory.h" | 12 #include "base/memory/shared_memory.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
| 15 #include "ipc/message_filter.h" | 15 #include "ipc/message_filter.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 class WebThreadedDataReceiver; | 18 class WebThreadedDataReceiver; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace IPC { | 21 namespace IPC { |
| 22 class SyncChannel; | 22 class SyncChannel; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace webkit_glue { | |
| 26 class WebThreadImpl; | |
| 27 } | |
| 28 | |
| 29 namespace content { | 25 namespace content { |
| 30 class ResourceDispatcher; | |
| 31 class WebThreadImpl; | 26 class WebThreadImpl; |
| 32 | 27 |
| 33 class ThreadedDataProvider { | 28 class ThreadedDataProvider { |
| 34 public: | 29 public: |
| 35 ThreadedDataProvider( | 30 ThreadedDataProvider( |
| 36 int request_id, | 31 int request_id, |
| 37 blink::WebThreadedDataReceiver* threaded_data_receiver, | 32 blink::WebThreadedDataReceiver* threaded_data_receiver, |
| 38 linked_ptr<base::SharedMemory> shm_buffer, | 33 linked_ptr<base::SharedMemory> shm_buffer, |
| 39 int shm_size); | 34 int shm_size); |
| 40 virtual ~ThreadedDataProvider(); | 35 virtual ~ThreadedDataProvider(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 int length; | 69 int length; |
| 75 }; | 70 }; |
| 76 std::vector<QueuedSharedMemoryData> queued_data_; | 71 std::vector<QueuedSharedMemoryData> queued_data_; |
| 77 | 72 |
| 78 DISALLOW_COPY_AND_ASSIGN(ThreadedDataProvider); | 73 DISALLOW_COPY_AND_ASSIGN(ThreadedDataProvider); |
| 79 }; | 74 }; |
| 80 | 75 |
| 81 } // namespace content | 76 } // namespace content |
| 82 | 77 |
| 83 #endif // CONTENT_CHILD_THREADEDDATAPROVIDER_IMPL_H_ | 78 #endif // CONTENT_CHILD_THREADEDDATAPROVIDER_IMPL_H_ |
| OLD | NEW |