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

Side by Side Diff: ipc/ipc_channel_mojo.h

Issue 2147493006: Adds Channel-associated interface support on ChannelProxy's thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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_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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 base::ProcessId peer_pid); 104 base::ProcessId peer_pid);
105 105
106 // Channel::AssociatedInterfaceSupport: 106 // Channel::AssociatedInterfaceSupport:
107 mojo::AssociatedGroup* GetAssociatedGroup() override; 107 mojo::AssociatedGroup* GetAssociatedGroup() override;
108 void AddGenericAssociatedInterface( 108 void AddGenericAssociatedInterface(
109 const std::string& name, 109 const std::string& name,
110 const GenericAssociatedInterfaceFactory& factory) override; 110 const GenericAssociatedInterfaceFactory& factory) override;
111 void GetGenericRemoteAssociatedInterface( 111 void GetGenericRemoteAssociatedInterface(
112 const std::string& name, 112 const std::string& name,
113 mojo::ScopedInterfaceEndpointHandle handle) override; 113 mojo::ScopedInterfaceEndpointHandle handle) override;
114 void SetProxyTaskRunner(
115 scoped_refptr<base::SingleThreadTaskRunner> task_runner) override;
114 116
115 // ChannelMojo needs to kill its MessagePipeReader in delayed manner 117 // ChannelMojo needs to kill its MessagePipeReader in delayed manner
116 // because the channel wants to kill these readers during the 118 // because the channel wants to kill these readers during the
117 // notifications invoked by them. 119 // notifications invoked by them.
118 typedef internal::MessagePipeReader::DelayedDeleter ReaderDeleter; 120 typedef internal::MessagePipeReader::DelayedDeleter ReaderDeleter;
119 121
120 // A TaskRunner which runs tasks on the ChannelMojo's owning thread. 122 // A TaskRunner which runs tasks on the ChannelMojo's owning thread.
121 scoped_refptr<base::TaskRunner> task_runner_; 123 scoped_refptr<base::TaskRunner> task_runner_;
122 124
123 const mojo::MessagePipeHandle pipe_; 125 const mojo::MessagePipeHandle pipe_;
(...skipping 10 matching lines...) Expand all
134 bool waiting_connect_; 136 bool waiting_connect_;
135 137
136 base::WeakPtrFactory<ChannelMojo> weak_factory_; 138 base::WeakPtrFactory<ChannelMojo> weak_factory_;
137 139
138 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); 140 DISALLOW_COPY_AND_ASSIGN(ChannelMojo);
139 }; 141 };
140 142
141 } // namespace IPC 143 } // namespace IPC
142 144
143 #endif // IPC_IPC_CHANNEL_MOJO_H_ 145 #endif // IPC_IPC_CHANNEL_MOJO_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698