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

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

Issue 299833008: Move AcceptWithResponder() out of the MessageReceiver interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
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_PUBLIC_CPP_BINDINGS_NO_INTERFACE_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_NO_INTERFACE_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_NO_INTERFACE_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_NO_INTERFACE_H_
7 7
8 #include <assert.h> 8 #include <assert.h>
9 9
10 #include "mojo/public/cpp/bindings/message.h" 10 #include "mojo/public/cpp/bindings/message.h"
(...skipping 16 matching lines...) Expand all
27 typedef PassThroughFilter ResponseValidator_; 27 typedef PassThroughFilter ResponseValidator_;
28 typedef NoInterface Client; 28 typedef NoInterface Client;
29 virtual ~NoInterface() {} 29 virtual ~NoInterface() {}
30 }; 30 };
31 31
32 class NoInterfaceProxy : public NoInterface { 32 class NoInterfaceProxy : public NoInterface {
33 public: 33 public:
34 explicit NoInterfaceProxy(MessageReceiver* receiver) {} 34 explicit NoInterfaceProxy(MessageReceiver* receiver) {}
35 }; 35 };
36 36
37 class NoInterfaceStub : public MessageReceiver { 37 class NoInterfaceStub : public MessageReceiverWithResponder {
38 public: 38 public:
39 NoInterfaceStub() {} 39 NoInterfaceStub() {}
40 void set_sink(NoInterface* sink) {} 40 void set_sink(NoInterface* sink) {}
41 virtual bool Accept(Message* message) MOJO_OVERRIDE; 41 virtual bool Accept(Message* message) MOJO_OVERRIDE;
42 virtual bool AcceptWithResponder(Message* message, MessageReceiver* responder) 42 virtual bool AcceptWithResponder(Message* message, MessageReceiver* responder)
43 MOJO_OVERRIDE; 43 MOJO_OVERRIDE;
44 }; 44 };
45 45
46 46
47 // AnyInterface is for use in cases where any interface would do (e.g., see the 47 // AnyInterface is for use in cases where any interface would do (e.g., see the
48 // Shell::Connect method). 48 // Shell::Connect method).
49 49
50 typedef NoInterface AnyInterface; 50 typedef NoInterface AnyInterface;
51 51
52 } // namespace mojo 52 } // namespace mojo
53 53
54 #endif // MOJO_PUBLIC_CPP_BINDINGS_NO_INTERFACE_H_ 54 #endif // MOJO_PUBLIC_CPP_BINDINGS_NO_INTERFACE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/message_filter.h ('k') | mojo/public/cpp/bindings/tests/connector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698