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

Side by Side Diff: ipc/ipc_channel_win.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_posix.cc ('k') | ipc/ipc_channel_win.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_WIN_H_ 5 #ifndef IPC_IPC_CHANNEL_WIN_H_
6 #define IPC_IPC_CHANNEL_WIN_H_ 6 #define IPC_IPC_CHANNEL_WIN_H_
7 7
8 #include "ipc/ipc_channel.h" 8 #include "ipc/ipc_channel.h"
9 9
10 #include <queue> 10 #include <queue>
(...skipping 18 matching lines...) Expand all
29 ChannelWin(const IPC::ChannelHandle &channel_handle, Mode mode, 29 ChannelWin(const IPC::ChannelHandle &channel_handle, Mode mode,
30 Listener* listener); 30 Listener* listener);
31 ~ChannelWin(); 31 ~ChannelWin();
32 32
33 // Channel implementation 33 // Channel implementation
34 virtual bool Connect() OVERRIDE; 34 virtual bool Connect() OVERRIDE;
35 virtual void Close() OVERRIDE; 35 virtual void Close() OVERRIDE;
36 virtual bool Send(Message* message) OVERRIDE; 36 virtual bool Send(Message* message) OVERRIDE;
37 virtual base::ProcessId GetPeerPID() const OVERRIDE; 37 virtual base::ProcessId GetPeerPID() const OVERRIDE;
38 virtual base::ProcessId GetSelfPID() const OVERRIDE; 38 virtual base::ProcessId GetSelfPID() const OVERRIDE;
39 virtual ChannelHandle TakePipeHandle() OVERRIDE;
40 39
41 static bool IsNamedServerInitialized(const std::string& channel_id); 40 static bool IsNamedServerInitialized(const std::string& channel_id);
42 41
43 42
44 private: 43 private:
45 // ChannelReader implementation. 44 // ChannelReader implementation.
46 virtual ReadState ReadData(char* buffer, 45 virtual ReadState ReadData(char* buffer,
47 int buffer_len, 46 int buffer_len,
48 int* bytes_read) OVERRIDE; 47 int* bytes_read) OVERRIDE;
49 virtual bool WillDispatchInputMessage(Message* msg) OVERRIDE; 48 virtual bool WillDispatchInputMessage(Message* msg) OVERRIDE;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 116
118 scoped_ptr<base::ThreadChecker> thread_check_; 117 scoped_ptr<base::ThreadChecker> thread_check_;
119 base::WeakPtrFactory<ChannelWin> weak_factory_; 118 base::WeakPtrFactory<ChannelWin> weak_factory_;
120 119
121 DISALLOW_COPY_AND_ASSIGN(ChannelWin); 120 DISALLOW_COPY_AND_ASSIGN(ChannelWin);
122 }; 121 };
123 122
124 } // namespace IPC 123 } // namespace IPC
125 124
126 #endif // IPC_IPC_CHANNEL_WIN_H_ 125 #endif // IPC_IPC_CHANNEL_WIN_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_posix.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698