| 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 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 77 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 78 virtual void OnChannelError() OVERRIDE; | 78 virtual void OnChannelError() OVERRIDE; |
| 79 | 79 |
| 80 // Message handlers: | 80 // Message handlers: |
| 81 void OnShutdownRequest(); | 81 void OnShutdownRequest(); |
| 82 void OnAllocateSharedMemory(uint32 buffer_size, | 82 void OnAllocateSharedMemory(uint32 buffer_size, |
| 83 base::SharedMemoryHandle* handle); | 83 base::SharedMemoryHandle* handle); |
| 84 void OnAllocateGpuMemoryBuffer(uint32 width, | 84 void OnAllocateGpuMemoryBuffer(uint32 width, |
| 85 uint32 height, | 85 uint32 height, |
| 86 uint32 internalformat, | 86 uint32 internalformat, |
| 87 uint32 usage, |
| 87 gfx::GpuMemoryBufferHandle* handle); | 88 gfx::GpuMemoryBufferHandle* handle); |
| 88 | 89 |
| 89 ChildProcessHostDelegate* delegate_; | 90 ChildProcessHostDelegate* delegate_; |
| 90 base::ProcessHandle peer_handle_; | 91 base::ProcessHandle peer_handle_; |
| 91 bool opening_channel_; // True while we're waiting the channel to be opened. | 92 bool opening_channel_; // True while we're waiting the channel to be opened. |
| 92 scoped_ptr<IPC::Channel> channel_; | 93 scoped_ptr<IPC::Channel> channel_; |
| 93 std::string channel_id_; | 94 std::string channel_id_; |
| 94 | 95 |
| 95 // Holds all the IPC message filters. Since this object lives on the IO | 96 // Holds all the IPC message filters. Since this object lives on the IO |
| 96 // thread, we don't have a IPC::ChannelProxy and so we manage filters | 97 // thread, we don't have a IPC::ChannelProxy and so we manage filters |
| 97 // manually. | 98 // manually. |
| 98 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; | 99 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); | 101 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace content | 104 } // namespace content |
| 104 | 105 |
| 105 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ | 106 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |