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_RECEIVED_DATA_FACTORY_H_ | 5 #ifndef CONTENT_CHILD_SHARED_MEMORY_RECEIVED_DATA_FACTORY_H_ |
6 #define CONTENT_CHILD_SHARED_MEMORY_RECEIVED_DATA_FACTORY_H_ | 6 #define CONTENT_CHILD_SHARED_MEMORY_RECEIVED_DATA_FACTORY_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
8 #include <vector> | 11 #include <vector> |
9 | 12 |
| 13 #include "base/macros.h" |
10 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
11 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/shared_memory.h" | 17 #include "base/memory/shared_memory.h" |
14 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
15 #include "content/public/child/request_peer.h" | 19 #include "content/public/child/request_peer.h" |
16 | 20 |
17 namespace IPC { | 21 namespace IPC { |
18 class Sender; | 22 class Sender; |
19 } // namespace IPC | 23 } // namespace IPC |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 bool is_stopped_; | 62 bool is_stopped_; |
59 // Just to keep the payload alive while issued data is alive. | 63 // Just to keep the payload alive while issued data is alive. |
60 linked_ptr<base::SharedMemory> memory_; | 64 linked_ptr<base::SharedMemory> memory_; |
61 | 65 |
62 DISALLOW_COPY_AND_ASSIGN(SharedMemoryReceivedDataFactory); | 66 DISALLOW_COPY_AND_ASSIGN(SharedMemoryReceivedDataFactory); |
63 }; | 67 }; |
64 | 68 |
65 } // namespace content | 69 } // namespace content |
66 | 70 |
67 #endif // CONTENT_CHILD_SHARED_MEMORY_RECEIVED_DATA_FACTORY_H_ | 71 #endif // CONTENT_CHILD_SHARED_MEMORY_RECEIVED_DATA_FACTORY_H_ |
OLD | NEW |