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

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

Issue 1955123003: Mojo C++ bindings: switch the remaining callsites of the old serialization interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@24_union_and_others
Patch Set: Created 4 years, 7 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_LIB_PIPE_CONTROL_MESSAGE_PROXY_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_PROXY_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_PROXY_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_PROXY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/lib/interface_id.h" 9 #include "mojo/public/cpp/bindings/lib/interface_id.h"
10 #include "mojo/public/cpp/bindings/lib/serialization_context.h"
10 11
11 namespace mojo { 12 namespace mojo {
12 13
13 class MessageReceiver; 14 class MessageReceiver;
14 15
15 namespace internal { 16 namespace internal {
16 17
17 // Proxy for request messages defined in pipe_control_messages.mojom. 18 // Proxy for request messages defined in pipe_control_messages.mojom.
18 class PipeControlMessageProxy { 19 class PipeControlMessageProxy {
19 public: 20 public:
20 // Doesn't take ownership of |receiver|. It must outlive this object. 21 // Doesn't take ownership of |receiver|. It must outlive this object.
21 explicit PipeControlMessageProxy(MessageReceiver* receiver); 22 explicit PipeControlMessageProxy(MessageReceiver* receiver);
22 23
23 void NotifyPeerEndpointClosed(InterfaceId id); 24 void NotifyPeerEndpointClosed(InterfaceId id);
24 void NotifyEndpointClosedBeforeSent(InterfaceId id); 25 void NotifyEndpointClosedBeforeSent(InterfaceId id);
25 26
26 private: 27 private:
27 // Not owned. 28 // Not owned.
28 MessageReceiver* receiver_; 29 MessageReceiver* receiver_;
30 SerializationContext context_;
29 31
30 DISALLOW_COPY_AND_ASSIGN(PipeControlMessageProxy); 32 DISALLOW_COPY_AND_ASSIGN(PipeControlMessageProxy);
31 }; 33 };
32 34
33 } // namespace internal 35 } // namespace internal
34 } // namespace mojo 36 } // namespace mojo
35 37
36 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_PROXY_H_ 38 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698