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 #ifndef CONTENT_CHILD_SHARED_MEMORY_DATA_CONSUMER_HANDLE_H_ | 5 #ifndef CONTENT_CHILD_SHARED_MEMORY_DATA_CONSUMER_HANDLE_H_ |
6 #define CONTENT_CHILD_SHARED_MEMORY_DATA_CONSUMER_HANDLE_H_ | 6 #define CONTENT_CHILD_SHARED_MEMORY_DATA_CONSUMER_HANDLE_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
11 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
12 #include "content/public/child/request_peer.h" | 15 #include "content/public/child/request_peer.h" |
13 #include "third_party/WebKit/public/platform/WebDataConsumerHandle.h" | 16 #include "third_party/WebKit/public/platform/WebDataConsumerHandle.h" |
14 | 17 |
15 namespace content { | 18 namespace content { |
16 | 19 |
17 // This class is a WebDataConsumerHandle that accepts RequestPeer::ReceivedData. | 20 // This class is a WebDataConsumerHandle that accepts RequestPeer::ReceivedData. |
18 class CONTENT_EXPORT SharedMemoryDataConsumerHandle final | 21 class CONTENT_EXPORT SharedMemoryDataConsumerHandle final |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 const char* debugName() const override; | 87 const char* debugName() const override; |
85 | 88 |
86 scoped_refptr<Context> context_; | 89 scoped_refptr<Context> context_; |
87 | 90 |
88 DISALLOW_COPY_AND_ASSIGN(SharedMemoryDataConsumerHandle); | 91 DISALLOW_COPY_AND_ASSIGN(SharedMemoryDataConsumerHandle); |
89 }; | 92 }; |
90 | 93 |
91 } // namespace content | 94 } // namespace content |
92 | 95 |
93 #endif // CONTENT_CHILD_SHARED_MEMORY_DATA_CONSUMER_HANDLE_H_ | 96 #endif // CONTENT_CHILD_SHARED_MEMORY_DATA_CONSUMER_HANDLE_H_ |
OLD | NEW |