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