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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(uint32 width,
98 uint32 height, 98 uint32 height,
99 gfx::GpuMemoryBuffer::Format format, 99 gfx::BufferFormat format,
100 gfx::GpuMemoryBuffer::Usage usage, 100 gfx::BufferUsage usage,
101 gfx::GpuMemoryBufferHandle* handle); 101 gfx::GpuMemoryBufferHandle* handle);
102 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 102 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
103 uint32 sync_point); 103 uint32 sync_point);
104 104
105 ChildProcessHostDelegate* delegate_; 105 ChildProcessHostDelegate* delegate_;
106 base::Process peer_process_; 106 base::Process peer_process_;
107 bool opening_channel_; // True while we're waiting the channel to be opened. 107 bool opening_channel_; // True while we're waiting the channel to be opened.
108 scoped_ptr<IPC::Channel> channel_; 108 scoped_ptr<IPC::Channel> channel_;
109 std::string channel_id_; 109 std::string channel_id_;
110 110
111 // Holds all the IPC message filters. Since this object lives on the IO 111 // 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 112 // thread, we don't have a IPC::ChannelProxy and so we manage filters
113 // manually. 113 // manually.
114 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; 114 std::vector<scoped_refptr<IPC::MessageFilter> > filters_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); 116 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl);
117 }; 117 };
118 118
119 } // namespace content 119 } // namespace content
120 120
121 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 121 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/child_thread_impl_browsertest.cc ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698