OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
6 #define CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void OnBadMessageReceived(const IPC::Message& message) override; | 77 void OnBadMessageReceived(const IPC::Message& message) override; |
78 | 78 |
79 // Message handlers: | 79 // Message handlers: |
80 void OnShutdownRequest(); | 80 void OnShutdownRequest(); |
81 void OnAllocateSharedMemory(uint32 buffer_size, | 81 void OnAllocateSharedMemory(uint32 buffer_size, |
82 base::SharedMemoryHandle* handle); | 82 base::SharedMemoryHandle* handle); |
83 void OnAllocateGpuMemoryBuffer(uint32 width, | 83 void OnAllocateGpuMemoryBuffer(uint32 width, |
84 uint32 height, | 84 uint32 height, |
85 gfx::GpuMemoryBuffer::Format format, | 85 gfx::GpuMemoryBuffer::Format format, |
86 gfx::GpuMemoryBuffer::Usage usage, | 86 gfx::GpuMemoryBuffer::Usage usage, |
87 IPC::Message* reply); | 87 gfx::GpuMemoryBufferHandle* handle); |
88 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id, | 88 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id, |
89 uint32 sync_point); | 89 uint32 sync_point); |
90 | 90 |
91 ChildProcessHostDelegate* delegate_; | 91 ChildProcessHostDelegate* delegate_; |
92 base::Process peer_process_; | 92 base::Process peer_process_; |
93 bool opening_channel_; // True while we're waiting the channel to be opened. | 93 bool opening_channel_; // True while we're waiting the channel to be opened. |
94 scoped_ptr<IPC::Channel> channel_; | 94 scoped_ptr<IPC::Channel> channel_; |
95 std::string channel_id_; | 95 std::string channel_id_; |
96 | 96 |
97 // Holds all the IPC message filters. Since this object lives on the IO | 97 // Holds all the IPC message filters. Since this object lives on the IO |
98 // thread, we don't have a IPC::ChannelProxy and so we manage filters | 98 // thread, we don't have a IPC::ChannelProxy and so we manage filters |
99 // manually. | 99 // manually. |
100 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; | 100 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); | 102 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace content | 105 } // namespace content |
106 | 106 |
107 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 107 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |