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

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

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no ozone Created 6 years, 7 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 | Annotate | Revision Log
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
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/shared_memory.h" 15 #include "base/memory/shared_memory.h"
16 #include "base/memory/singleton.h" 16 #include "base/memory/singleton.h"
17 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
18 #include "content/public/common/child_process_host.h" 18 #include "content/public/common/child_process_host.h"
19 #include "ipc/ipc_listener.h" 19 #include "ipc/ipc_listener.h"
20 #include "ui/gfx/gpu_memory_buffer.h"
20 21
21 namespace base { 22 namespace base {
22 class FilePath; 23 class FilePath;
23 } 24 }
24 25
25 namespace gfx {
26 struct GpuMemoryBufferHandle;
27 }
28
29 namespace IPC { 26 namespace IPC {
30 class MessageFilter; 27 class MessageFilter;
31 } 28 }
32 29
33 namespace content { 30 namespace content {
34 class ChildProcessHostDelegate; 31 class ChildProcessHostDelegate;
35 32
36 // Provides common functionality for hosting a child process and processing IPC 33 // Provides common functionality for hosting a child process and processing IPC
37 // messages between the host and the child process. Users are responsible 34 // messages between the host and the child process. Users are responsible
38 // for the actual launching and terminating of the child processes. 35 // for the actual launching and terminating of the child processes.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 74 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
78 virtual void OnChannelError() OVERRIDE; 75 virtual void OnChannelError() OVERRIDE;
79 76
80 // Message handlers: 77 // Message handlers:
81 void OnShutdownRequest(); 78 void OnShutdownRequest();
82 void OnAllocateSharedMemory(uint32 buffer_size, 79 void OnAllocateSharedMemory(uint32 buffer_size,
83 base::SharedMemoryHandle* handle); 80 base::SharedMemoryHandle* handle);
84 void OnAllocateGpuMemoryBuffer(uint32 width, 81 void OnAllocateGpuMemoryBuffer(uint32 width,
85 uint32 height, 82 uint32 height,
86 uint32 internalformat, 83 uint32 internalformat,
84 gfx::GpuMemoryBuffer::Usage usage,
87 gfx::GpuMemoryBufferHandle* handle); 85 gfx::GpuMemoryBufferHandle* handle);
88 86
89 ChildProcessHostDelegate* delegate_; 87 ChildProcessHostDelegate* delegate_;
90 base::ProcessHandle peer_handle_; 88 base::ProcessHandle peer_handle_;
91 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.
92 scoped_ptr<IPC::Channel> channel_; 90 scoped_ptr<IPC::Channel> channel_;
93 std::string channel_id_; 91 std::string channel_id_;
94 92
95 // 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
96 // 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
97 // manually. 95 // manually.
98 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; 96 std::vector<scoped_refptr<IPC::MessageFilter> > filters_;
99 97
100 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); 98 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl);
101 }; 99 };
102 100
103 } // namespace content 101 } // namespace content
104 102
105 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 103 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698