Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: content/common/child_process_host_impl.h

Issue 1263913002: FREEZE.unindexed Base URL: https://chromium.googlesource.com/chromium/src.git@textures3
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // IPC::Listener methods: 87 // IPC::Listener methods:
88 bool OnMessageReceived(const IPC::Message& msg) override; 88 bool OnMessageReceived(const IPC::Message& msg) override;
89 void OnChannelConnected(int32 peer_pid) override; 89 void OnChannelConnected(int32 peer_pid) override;
90 void OnChannelError() override; 90 void OnChannelError() override;
91 void OnBadMessageReceived(const IPC::Message& message) override; 91 void OnBadMessageReceived(const IPC::Message& message) override;
92 92
93 // Message handlers: 93 // Message handlers:
94 void OnShutdownRequest(); 94 void OnShutdownRequest();
95 void OnAllocateSharedMemory(uint32 buffer_size, 95 void OnAllocateSharedMemory(uint32 buffer_size,
96 base::SharedMemoryHandle* handle); 96 base::SharedMemoryHandle* handle);
97 void OnAllocateGpuMemoryBuffer(uint32 width, 97 void OnAllocateGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
98 uint32 width,
98 uint32 height, 99 uint32 height,
99 gfx::BufferFormat format, 100 gfx::BufferFormat format,
100 gfx::BufferUsage usage, 101 gfx::BufferUsage usage,
101 gfx::GpuMemoryBufferHandle* handle); 102 gfx::GpuMemoryBufferHandle* handle);
102 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 103 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
103 uint32 sync_point); 104 uint32 sync_point);
104 105
105 ChildProcessHostDelegate* delegate_; 106 ChildProcessHostDelegate* delegate_;
106 base::Process peer_process_; 107 base::Process peer_process_;
107 bool opening_channel_; // True while we're waiting the channel to be opened. 108 bool opening_channel_; // True while we're waiting the channel to be opened.
108 scoped_ptr<IPC::Channel> channel_; 109 scoped_ptr<IPC::Channel> channel_;
109 std::string channel_id_; 110 std::string channel_id_;
110 111
111 // Holds all the IPC message filters. Since this object lives on the IO 112 // Holds all the IPC message filters. Since this object lives on the IO
112 // thread, we don't have a IPC::ChannelProxy and so we manage filters 113 // thread, we don't have a IPC::ChannelProxy and so we manage filters
113 // manually. 114 // manually.
114 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; 115 std::vector<scoped_refptr<IPC::MessageFilter> > filters_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); 117 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl);
117 }; 118 };
118 119
119 } // namespace content 120 } // namespace content
120 121
121 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 122 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698