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

Side by Side Diff: mojo/public/cpp/bindings/pipe_control_message_proxy.h

Issue 2358133002: Turn //mojo/public/cpp/bindings and //mojo/public/cpp/system into components (Closed)
Patch Set: Fix wording Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_PROXY_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_PROXY_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_PROXY_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_PROXY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/bindings_export.h"
9 #include "mojo/public/cpp/bindings/interface_id.h" 10 #include "mojo/public/cpp/bindings/interface_id.h"
10 #include "mojo/public/cpp/bindings/lib/serialization_context.h" 11 #include "mojo/public/cpp/bindings/lib/serialization_context.h"
11 12
12 namespace mojo { 13 namespace mojo {
13 14
14 class MessageReceiver; 15 class MessageReceiver;
15 16
16 // Proxy for request messages defined in pipe_control_messages.mojom. 17 // Proxy for request messages defined in pipe_control_messages.mojom.
17 class PipeControlMessageProxy { 18 class MOJO_CPP_BINDINGS_EXPORT PipeControlMessageProxy {
18 public: 19 public:
19 // Doesn't take ownership of |receiver|. It must outlive this object. 20 // Doesn't take ownership of |receiver|. It must outlive this object.
20 explicit PipeControlMessageProxy(MessageReceiver* receiver); 21 explicit PipeControlMessageProxy(MessageReceiver* receiver);
21 22
22 void NotifyPeerEndpointClosed(InterfaceId id); 23 void NotifyPeerEndpointClosed(InterfaceId id);
23 void NotifyEndpointClosedBeforeSent(InterfaceId id); 24 void NotifyEndpointClosedBeforeSent(InterfaceId id);
24 25
25 private: 26 private:
26 // Not owned. 27 // Not owned.
27 MessageReceiver* receiver_; 28 MessageReceiver* receiver_;
28 internal::SerializationContext context_; 29 internal::SerializationContext context_;
29 30
30 DISALLOW_COPY_AND_ASSIGN(PipeControlMessageProxy); 31 DISALLOW_COPY_AND_ASSIGN(PipeControlMessageProxy);
31 }; 32 };
32 33
33 } // namespace mojo 34 } // namespace mojo
34 35
35 #endif // MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_PROXY_H_ 36 #endif // MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_PROXY_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/pipe_control_message_handler.h ('k') | mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698