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