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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 Mode mode, | 99 Mode mode, |
100 Listener* listener, | 100 Listener* listener, |
101 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner); | 101 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner); |
102 | 102 |
103 void ForwardMessageFromThreadSafePtr(mojo::Message message); | 103 void ForwardMessageFromThreadSafePtr(mojo::Message message); |
104 void ForwardMessageWithResponderFromThreadSafePtr( | 104 void ForwardMessageWithResponderFromThreadSafePtr( |
105 mojo::Message message, | 105 mojo::Message message, |
106 std::unique_ptr<mojo::MessageReceiver> responder); | 106 std::unique_ptr<mojo::MessageReceiver> responder); |
107 | 107 |
108 // Channel::AssociatedInterfaceSupport: | 108 // Channel::AssociatedInterfaceSupport: |
109 mojo::AssociatedGroup* GetAssociatedGroup() override; | |
110 std::unique_ptr<mojo::ThreadSafeForwarder<mojom::Channel>> | 109 std::unique_ptr<mojo::ThreadSafeForwarder<mojom::Channel>> |
111 CreateThreadSafeChannel() override; | 110 CreateThreadSafeChannel() override; |
112 void AddGenericAssociatedInterface( | 111 void AddGenericAssociatedInterface( |
113 const std::string& name, | 112 const std::string& name, |
114 const GenericAssociatedInterfaceFactory& factory) override; | 113 const GenericAssociatedInterfaceFactory& factory) override; |
115 void GetGenericRemoteAssociatedInterface( | 114 void GetGenericRemoteAssociatedInterface( |
116 const std::string& name, | 115 const std::string& name, |
117 mojo::ScopedInterfaceEndpointHandle handle) override; | 116 mojo::ScopedInterfaceEndpointHandle handle) override; |
118 | 117 |
119 // A TaskRunner which runs tasks on the ChannelMojo's owning thread. | 118 // A TaskRunner which runs tasks on the ChannelMojo's owning thread. |
(...skipping 10 matching lines...) Expand all Loading... |
130 associated_interfaces_; | 129 associated_interfaces_; |
131 | 130 |
132 base::WeakPtrFactory<ChannelMojo> weak_factory_; | 131 base::WeakPtrFactory<ChannelMojo> weak_factory_; |
133 | 132 |
134 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); | 133 DISALLOW_COPY_AND_ASSIGN(ChannelMojo); |
135 }; | 134 }; |
136 | 135 |
137 } // namespace IPC | 136 } // namespace IPC |
138 | 137 |
139 #endif // IPC_IPC_CHANNEL_MOJO_H_ | 138 #endif // IPC_IPC_CHANNEL_MOJO_H_ |
OLD | NEW |