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

Side by Side Diff: ipc/mojo/ipc_channel_mojo.h

Issue 601563002: Remove IPC::Channel::TakePipeHandle() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Nacl build error Created 6 years, 3 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
« no previous file with comments | « ipc/ipc_test_sink.cc ('k') | ipc/mojo/ipc_channel_mojo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 IPC_IPC_CHANNEL_MOJO_H_ 5 #ifndef IPC_IPC_CHANNEL_MOJO_H_
6 #define IPC_IPC_CHANNEL_MOJO_H_ 6 #define IPC_IPC_CHANNEL_MOJO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 // ChannelMojoHost tells the client handle using this API. 83 // ChannelMojoHost tells the client handle using this API.
84 void OnClientLaunched(base::ProcessHandle handle); 84 void OnClientLaunched(base::ProcessHandle handle);
85 85
86 // Channel implementation 86 // Channel implementation
87 virtual bool Connect() OVERRIDE; 87 virtual bool Connect() OVERRIDE;
88 virtual void Close() OVERRIDE; 88 virtual void Close() OVERRIDE;
89 virtual bool Send(Message* message) OVERRIDE; 89 virtual bool Send(Message* message) OVERRIDE;
90 virtual base::ProcessId GetPeerPID() const OVERRIDE; 90 virtual base::ProcessId GetPeerPID() const OVERRIDE;
91 virtual base::ProcessId GetSelfPID() const OVERRIDE; 91 virtual base::ProcessId GetSelfPID() const OVERRIDE;
92 virtual ChannelHandle TakePipeHandle() OVERRIDE;
93 92
94 #if defined(OS_POSIX) && !defined(OS_NACL) 93 #if defined(OS_POSIX) && !defined(OS_NACL)
95 virtual int GetClientFileDescriptor() const OVERRIDE; 94 virtual int GetClientFileDescriptor() const OVERRIDE;
96 virtual int TakeClientFileDescriptor() OVERRIDE; 95 virtual int TakeClientFileDescriptor() OVERRIDE;
97 96
98 // These access protected API of IPC::Message, which has ChannelMojo 97 // These access protected API of IPC::Message, which has ChannelMojo
99 // as a friend class. 98 // as a friend class.
100 static MojoResult WriteToFileDescriptorSet( 99 static MojoResult WriteToFileDescriptorSet(
101 const std::vector<MojoHandle>& handle_buffer, 100 const std::vector<MojoHandle>& handle_buffer,
102 Message* message); 101 Message* message);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 ScopedVector<Message> pending_messages_; 147 ScopedVector<Message> pending_messages_;
149 148
150 base::WeakPtrFactory<ChannelMojo> weak_factory_; 149 base::WeakPtrFactory<ChannelMojo> weak_factory_;
151 150
152 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); 151 DISALLOW_COPY_AND_ASSIGN(ChannelMojo);
153 }; 152 };
154 153
155 } // namespace IPC 154 } // namespace IPC
156 155
157 #endif // IPC_IPC_CHANNEL_MOJO_H_ 156 #endif // IPC_IPC_CHANNEL_MOJO_H_
OLDNEW
« no previous file with comments | « ipc/ipc_test_sink.cc ('k') | ipc/mojo/ipc_channel_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698