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

Side by Side Diff: mojo/edk/system/local_message_pipe_endpoint.h

Issue 799113004: Update mojo sdk to rev 59145288bae55b0fce4276b017df6a1117bcf00f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add mojo's ply to checklicenses whitelist Created 6 years 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 | « mojo/edk/system/incoming_endpoint.cc ('k') | mojo/edk/system/local_message_pipe_endpoint.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 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_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_ 5 #ifndef MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
6 #define MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_ 6 #define MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "mojo/edk/system/awakable_list.h" 10 #include "mojo/edk/system/awakable_list.h"
11 #include "mojo/edk/system/handle_signals_state.h" 11 #include "mojo/edk/system/handle_signals_state.h"
12 #include "mojo/edk/system/message_in_transit_queue.h" 12 #include "mojo/edk/system/message_in_transit_queue.h"
13 #include "mojo/edk/system/message_pipe_endpoint.h" 13 #include "mojo/edk/system/message_pipe_endpoint.h"
14 #include "mojo/edk/system/system_impl_export.h" 14 #include "mojo/edk/system/system_impl_export.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace system { 17 namespace system {
18 18
19 class MOJO_SYSTEM_IMPL_EXPORT LocalMessagePipeEndpoint 19 class MOJO_SYSTEM_IMPL_EXPORT LocalMessagePipeEndpoint
20 : public MessagePipeEndpoint { 20 : public MessagePipeEndpoint {
21 public: 21 public:
22 LocalMessagePipeEndpoint(); 22 // If |message_queue| is non-null, its contents will be taken as the queue of
23 // (already-received) messages.
24 explicit LocalMessagePipeEndpoint(
25 MessageInTransitQueue* message_queue = nullptr);
23 ~LocalMessagePipeEndpoint() override; 26 ~LocalMessagePipeEndpoint() override;
24 27
25 // |MessagePipeEndpoint| implementation: 28 // |MessagePipeEndpoint| implementation:
26 Type GetType() const override; 29 Type GetType() const override;
27 bool OnPeerClose() override; 30 bool OnPeerClose() override;
28 void EnqueueMessage(scoped_ptr<MessageInTransit> message) override; 31 void EnqueueMessage(scoped_ptr<MessageInTransit> message) override;
29 32
30 // There's a dispatcher for |LocalMessagePipeEndpoint|s, so we have to 33 // There's a dispatcher for |LocalMessagePipeEndpoint|s, so we have to
31 // implement/override these: 34 // implement/override these:
32 void Close() override; 35 void Close() override;
(...skipping 22 matching lines...) Expand all
55 MessageInTransitQueue message_queue_; 58 MessageInTransitQueue message_queue_;
56 AwakableList awakable_list_; 59 AwakableList awakable_list_;
57 60
58 DISALLOW_COPY_AND_ASSIGN(LocalMessagePipeEndpoint); 61 DISALLOW_COPY_AND_ASSIGN(LocalMessagePipeEndpoint);
59 }; 62 };
60 63
61 } // namespace system 64 } // namespace system
62 } // namespace mojo 65 } // namespace mojo
63 66
64 #endif // MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_ 67 #endif // MOJO_EDK_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/incoming_endpoint.cc ('k') | mojo/edk/system/local_message_pipe_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698