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

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

Issue 2100683002: Mojo C++ Bindings: Extract AssociatedGroupController from MultiplexRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops more gyp ugh Created 4 years, 5 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_HANDLER_DELEGATE_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_HANDLER_DELEGATE_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_HANDLER_DELEGATE_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_HANDLER_DELEGATE_H_
7 7
8 #include "mojo/public/cpp/bindings/lib/interface_id.h" 8 #include "mojo/public/cpp/bindings/interface_id.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace internal { 11 namespace internal {
12 12
13 class PipeControlMessageHandlerDelegate { 13 class PipeControlMessageHandlerDelegate {
14 public: 14 public:
15 // The implementation of the following methods should return false if the 15 // The implementation of the following methods should return false if the
16 // notification is unexpected. In that case, the user of this delegate is 16 // notification is unexpected. In that case, the user of this delegate is
17 // expected to close the message pipe. 17 // expected to close the message pipe.
18 virtual bool OnPeerAssociatedEndpointClosed(InterfaceId id) = 0; 18 virtual bool OnPeerAssociatedEndpointClosed(InterfaceId id) = 0;
19 virtual bool OnAssociatedEndpointClosedBeforeSent(InterfaceId id) = 0; 19 virtual bool OnAssociatedEndpointClosedBeforeSent(InterfaceId id) = 0;
20 20
21 protected: 21 protected:
22 virtual ~PipeControlMessageHandlerDelegate() {} 22 virtual ~PipeControlMessageHandlerDelegate() {}
23 }; 23 };
24 24
25 } // namespace internal 25 } // namespace internal
26 } // namespace mojo 26 } // namespace mojo
27 27
28 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_HANDLER_DELEGATE_H_ 28 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_PIPE_CONTROL_MESSAGE_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/pipe_control_message_handler.h ('k') | mojo/public/cpp/bindings/lib/pipe_control_message_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698