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

Side by Side Diff: ipc/ipc_channel_nacl.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, 2 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_channel.h ('k') | ipc/ipc_channel_nacl.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 (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 IPC_IPC_CHANNEL_NACL_H_ 5 #ifndef IPC_IPC_CHANNEL_NACL_H_
6 #define IPC_IPC_CHANNEL_NACL_H_ 6 #define IPC_IPC_CHANNEL_NACL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 public: 36 public:
37 // Mirror methods of Channel, see ipc_channel.h for description. 37 // Mirror methods of Channel, see ipc_channel.h for description.
38 ChannelNacl(const IPC::ChannelHandle& channel_handle, 38 ChannelNacl(const IPC::ChannelHandle& channel_handle,
39 Mode mode, 39 Mode mode,
40 Listener* listener); 40 Listener* listener);
41 virtual ~ChannelNacl(); 41 virtual ~ChannelNacl();
42 42
43 // Channel implementation. 43 // Channel implementation.
44 virtual base::ProcessId GetPeerPID() const OVERRIDE; 44 virtual base::ProcessId GetPeerPID() const OVERRIDE;
45 virtual base::ProcessId GetSelfPID() const OVERRIDE; 45 virtual base::ProcessId GetSelfPID() const OVERRIDE;
46 virtual ChannelHandle TakePipeHandle() OVERRIDE;
47 virtual bool Connect() OVERRIDE; 46 virtual bool Connect() OVERRIDE;
48 virtual void Close() OVERRIDE; 47 virtual void Close() OVERRIDE;
49 virtual bool Send(Message* message) OVERRIDE; 48 virtual bool Send(Message* message) OVERRIDE;
50 49
51 // Posted to the main thread by ReaderThreadRunner. 50 // Posted to the main thread by ReaderThreadRunner.
52 void DidRecvMsg(scoped_ptr<MessageContents> contents); 51 void DidRecvMsg(scoped_ptr<MessageContents> contents);
53 void ReadDidFail(); 52 void ReadDidFail();
54 53
55 private: 54 private:
56 class ReaderThreadRunner; 55 class ReaderThreadRunner;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 std::deque<linked_ptr<Message> > output_queue_; 113 std::deque<linked_ptr<Message> > output_queue_;
115 114
116 base::WeakPtrFactory<ChannelNacl> weak_ptr_factory_; 115 base::WeakPtrFactory<ChannelNacl> weak_ptr_factory_;
117 116
118 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl); 117 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelNacl);
119 }; 118 };
120 119
121 } // namespace IPC 120 } // namespace IPC
122 121
123 #endif // IPC_IPC_CHANNEL_NACL_H_ 122 #endif // IPC_IPC_CHANNEL_NACL_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_nacl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698