OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |