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

Side by Side Diff: ipc/ipc_channel_mojo.h

Issue 2301123004: Mojo Channel: Fix deferred proxy dispatch; support paused channels (Closed)
Patch Set: . Created 4 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_channel_common.cc ('k') | ipc/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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner); 61 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner);
62 62
63 static std::unique_ptr<ChannelFactory> CreateClientFactory( 63 static std::unique_ptr<ChannelFactory> CreateClientFactory(
64 mojo::ScopedMessagePipeHandle handle, 64 mojo::ScopedMessagePipeHandle handle,
65 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner); 65 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner);
66 66
67 ~ChannelMojo() override; 67 ~ChannelMojo() override;
68 68
69 // Channel implementation 69 // Channel implementation
70 bool Connect() override; 70 bool Connect() override;
71 bool ConnectPaused() override;
72 void Unpause(bool flush) override;
73 void Flush() override;
71 void Close() override; 74 void Close() override;
72 bool Send(Message* message) override; 75 bool Send(Message* message) override;
73 bool IsSendThreadSafe() const override; 76 bool IsSendThreadSafe() const override;
74 base::ProcessId GetPeerPID() const override; 77 base::ProcessId GetPeerPID() const override;
75 base::ProcessId GetSelfPID() const override; 78 base::ProcessId GetSelfPID() const override;
76 Channel::AssociatedInterfaceSupport* GetAssociatedInterfaceSupport() override; 79 Channel::AssociatedInterfaceSupport* GetAssociatedInterfaceSupport() override;
77 80
78 #if defined(OS_POSIX) && !defined(OS_NACL_SFI) 81 #if defined(OS_POSIX) && !defined(OS_NACL_SFI)
79 int GetClientFileDescriptor() const override; 82 int GetClientFileDescriptor() const override;
80 base::ScopedFD TakeClientFileDescriptor() override; 83 base::ScopedFD TakeClientFileDescriptor() override;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 associated_interfaces_; 134 associated_interfaces_;
132 135
133 base::WeakPtrFactory<ChannelMojo> weak_factory_; 136 base::WeakPtrFactory<ChannelMojo> weak_factory_;
134 137
135 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); 138 DISALLOW_COPY_AND_ASSIGN(ChannelMojo);
136 }; 139 };
137 140
138 } // namespace IPC 141 } // namespace IPC
139 142
140 #endif // IPC_IPC_CHANNEL_MOJO_H_ 143 #endif // IPC_IPC_CHANNEL_MOJO_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_common.cc ('k') | ipc/ipc_channel_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698