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

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

Issue 795593004: Update mojo sdk to rev cc531b32182099a5a034a99daff35ed5d38a61c8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More workarounds for MSVC Created 5 years, 11 months 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/endpoint_relayer.h ('k') | mojo/edk/system/message_in_transit.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 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 MOJO_EDK_SYSTEM_INCOMING_ENDPOINT_H_ 5 #ifndef MOJO_EDK_SYSTEM_INCOMING_ENDPOINT_H_
6 #define MOJO_EDK_SYSTEM_INCOMING_ENDPOINT_H_ 6 #define MOJO_EDK_SYSTEM_INCOMING_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 "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // Must be called before destroying this object if |ConvertToMessagePipe()| 33 // Must be called before destroying this object if |ConvertToMessagePipe()|
34 // wasn't called (but |Init()| was). 34 // wasn't called (but |Init()| was).
35 void Close(); 35 void Close();
36 36
37 // |ChannelEndpointClient| methods: 37 // |ChannelEndpointClient| methods:
38 bool OnReadMessage(unsigned port, MessageInTransit* message) override; 38 bool OnReadMessage(unsigned port, MessageInTransit* message) override;
39 void OnDetachFromChannel(unsigned port) override; 39 void OnDetachFromChannel(unsigned port) override;
40 40
41 private: 41 private:
42 virtual ~IncomingEndpoint(); 42 ~IncomingEndpoint() override;
43 43
44 base::Lock lock_; // Protects the following members. 44 base::Lock lock_; // Protects the following members.
45 scoped_refptr<ChannelEndpoint> endpoint_; 45 scoped_refptr<ChannelEndpoint> endpoint_;
46 MessageInTransitQueue message_queue_; 46 MessageInTransitQueue message_queue_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(IncomingEndpoint); 48 DISALLOW_COPY_AND_ASSIGN(IncomingEndpoint);
49 }; 49 };
50 50
51 } // namespace system 51 } // namespace system
52 } // namespace mojo 52 } // namespace mojo
53 53
54 #endif // MOJO_EDK_SYSTEM_INCOMING_ENDPOINT_H_ 54 #endif // MOJO_EDK_SYSTEM_INCOMING_ENDPOINT_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/endpoint_relayer.h ('k') | mojo/edk/system/message_in_transit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698