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

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

Issue 725353003: Don't pass ProcessHandle through ChildProcessHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 6 years, 1 month 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
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/process/process.h"
17 #include "base/strings/string16.h" 18 #include "base/strings/string16.h"
18 #include "content/public/common/child_process_host.h" 19 #include "content/public/common/child_process_host.h"
19 #include "ipc/ipc_listener.h" 20 #include "ipc/ipc_listener.h"
20 #include "ui/gfx/gpu_memory_buffer.h" 21 #include "ui/gfx/gpu_memory_buffer.h"
21 22
22 namespace base { 23 namespace base {
23 class FilePath; 24 class FilePath;
24 } 25 }
25 26
26 namespace IPC { 27 namespace IPC {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 gfx::GpuMemoryBuffer::Format format, 85 gfx::GpuMemoryBuffer::Format format,
85 gfx::GpuMemoryBuffer::Usage usage, 86 gfx::GpuMemoryBuffer::Usage usage,
86 IPC::Message* reply); 87 IPC::Message* reply);
87 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 88 void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
88 uint32 sync_point); 89 uint32 sync_point);
89 90
90 void GpuMemoryBufferAllocated(IPC::Message* reply, 91 void GpuMemoryBufferAllocated(IPC::Message* reply,
91 const gfx::GpuMemoryBufferHandle& handle); 92 const gfx::GpuMemoryBufferHandle& handle);
92 93
93 ChildProcessHostDelegate* delegate_; 94 ChildProcessHostDelegate* delegate_;
94 base::ProcessHandle peer_handle_; 95 base::Process peer_process_;
95 bool opening_channel_; // True while we're waiting the channel to be opened. 96 bool opening_channel_; // True while we're waiting the channel to be opened.
96 scoped_ptr<IPC::Channel> channel_; 97 scoped_ptr<IPC::Channel> channel_;
97 std::string channel_id_; 98 std::string channel_id_;
98 99
99 // Holds all the IPC message filters. Since this object lives on the IO 100 // Holds all the IPC message filters. Since this object lives on the IO
100 // thread, we don't have a IPC::ChannelProxy and so we manage filters 101 // thread, we don't have a IPC::ChannelProxy and so we manage filters
101 // manually. 102 // manually.
102 std::vector<scoped_refptr<IPC::MessageFilter> > filters_; 103 std::vector<scoped_refptr<IPC::MessageFilter> > filters_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl); 105 DISALLOW_COPY_AND_ASSIGN(ChildProcessHostImpl);
105 }; 106 };
106 107
107 } // namespace content 108 } // namespace content
108 109
109 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_ 110 #endif // CONTENT_COMMON_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_gamepad_host.cc ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698