OLD | NEW |
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_PROXY_H_ | 5 #ifndef IPC_IPC_CHANNEL_PROXY_H_ |
6 #define IPC_IPC_CHANNEL_PROXY_H_ | 6 #define IPC_IPC_CHANNEL_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 // Indicates if the underlying channel's Send is thread-safe. | 189 // Indicates if the underlying channel's Send is thread-safe. |
190 bool IsChannelSendThreadSafe() const; | 190 bool IsChannelSendThreadSafe() const; |
191 | 191 |
192 protected: | 192 protected: |
193 friend class base::RefCountedThreadSafe<Context>; | 193 friend class base::RefCountedThreadSafe<Context>; |
194 ~Context() override; | 194 ~Context() override; |
195 | 195 |
196 // IPC::Listener methods: | 196 // IPC::Listener methods: |
197 bool OnMessageReceived(const Message& message) override; | 197 bool OnMessageReceived(const Message& message) override; |
198 void OnChannelConnected(int32 peer_pid) override; | 198 void OnChannelConnected(int32_t peer_pid) override; |
199 void OnChannelError() override; | 199 void OnChannelError() override; |
200 | 200 |
201 // Like OnMessageReceived but doesn't try the filters. | 201 // Like OnMessageReceived but doesn't try the filters. |
202 bool OnMessageReceivedNoFilter(const Message& message); | 202 bool OnMessageReceivedNoFilter(const Message& message); |
203 | 203 |
204 // Gives the filters a chance at processing |message|. | 204 // Gives the filters a chance at processing |message|. |
205 // Returns true if the message was processed, false otherwise. | 205 // Returns true if the message was processed, false otherwise. |
206 bool TryFilters(const Message& message); | 206 bool TryFilters(const Message& message); |
207 | 207 |
208 // Like Open and Close, but called on the IPC thread. | 208 // Like Open and Close, but called on the IPC thread. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 bool did_init_; | 306 bool did_init_; |
307 | 307 |
308 #if defined(ENABLE_IPC_FUZZER) | 308 #if defined(ENABLE_IPC_FUZZER) |
309 OutgoingMessageFilter* outgoing_message_filter_; | 309 OutgoingMessageFilter* outgoing_message_filter_; |
310 #endif | 310 #endif |
311 }; | 311 }; |
312 | 312 |
313 } // namespace IPC | 313 } // namespace IPC |
314 | 314 |
315 #endif // IPC_IPC_CHANNEL_PROXY_H_ | 315 #endif // IPC_IPC_CHANNEL_PROXY_H_ |
OLD | NEW |