| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_ | 5 #ifndef MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_ |
| 6 #define MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_ | 6 #define MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "mojo/system/message_in_transit.h" | 10 #include "mojo/system/message_in_transit.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // remote consists of a |LocalMessagePipeEndpoint| and a | 27 // remote consists of a |LocalMessagePipeEndpoint| and a |
| 28 // |ProxyMessagePipeEndpoint|, with only the local endpoint being accessible via | 28 // |ProxyMessagePipeEndpoint|, with only the local endpoint being accessible via |
| 29 // a |MessagePipeDispatcher|. | 29 // a |MessagePipeDispatcher|. |
| 30 class MOJO_SYSTEM_IMPL_EXPORT ProxyMessagePipeEndpoint | 30 class MOJO_SYSTEM_IMPL_EXPORT ProxyMessagePipeEndpoint |
| 31 : public MessagePipeEndpoint { | 31 : public MessagePipeEndpoint { |
| 32 public: | 32 public: |
| 33 explicit ProxyMessagePipeEndpoint(ChannelEndpoint* channel_endpoint); | 33 explicit ProxyMessagePipeEndpoint(ChannelEndpoint* channel_endpoint); |
| 34 virtual ~ProxyMessagePipeEndpoint(); | 34 virtual ~ProxyMessagePipeEndpoint(); |
| 35 | 35 |
| 36 // |MessagePipeEndpoint| implementation: | 36 // |MessagePipeEndpoint| implementation: |
| 37 virtual Type GetType() const OVERRIDE; | 37 virtual Type GetType() const override; |
| 38 virtual bool OnPeerClose() OVERRIDE; | 38 virtual bool OnPeerClose() override; |
| 39 virtual void EnqueueMessage(scoped_ptr<MessageInTransit> message) OVERRIDE; | 39 virtual void EnqueueMessage(scoped_ptr<MessageInTransit> message) override; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 scoped_refptr<ChannelEndpoint> channel_endpoint_; | 42 scoped_refptr<ChannelEndpoint> channel_endpoint_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(ProxyMessagePipeEndpoint); | 44 DISALLOW_COPY_AND_ASSIGN(ProxyMessagePipeEndpoint); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace system | 47 } // namespace system |
| 48 } // namespace mojo | 48 } // namespace mojo |
| 49 | 49 |
| 50 #endif // MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_ | 50 #endif // MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_ |
| OLD | NEW |