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

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

Issue 2358133002: Turn //mojo/public/cpp/bindings and //mojo/public/cpp/system into components (Closed)
Patch Set: Fix wording Created 4 years, 2 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_HANDLER_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_HANDLER_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_HANDLER_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_HANDLER_H_
7 7
8 #include "base/compiler_specific.h"
8 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "mojo/public/cpp/bindings/bindings_export.h"
9 #include "mojo/public/cpp/bindings/interface_id.h" 11 #include "mojo/public/cpp/bindings/interface_id.h"
10 #include "mojo/public/cpp/bindings/lib/serialization_context.h" 12 #include "mojo/public/cpp/bindings/lib/serialization_context.h"
11 #include "mojo/public/cpp/bindings/message.h" 13 #include "mojo/public/cpp/bindings/message.h"
12 14
13 namespace mojo { 15 namespace mojo {
14 16
15 class PipeControlMessageHandlerDelegate; 17 class PipeControlMessageHandlerDelegate;
16 18
17 // Handler for messages defined in pipe_control_messages.mojom. 19 // Handler for messages defined in pipe_control_messages.mojom.
18 class PipeControlMessageHandler : public MessageReceiver { 20 class MOJO_CPP_BINDINGS_EXPORT PipeControlMessageHandler
21 : NON_EXPORTED_BASE(public MessageReceiver) {
19 public: 22 public:
20 explicit PipeControlMessageHandler( 23 explicit PipeControlMessageHandler(
21 PipeControlMessageHandlerDelegate* delegate); 24 PipeControlMessageHandlerDelegate* delegate);
22 ~PipeControlMessageHandler() override; 25 ~PipeControlMessageHandler() override;
23 26
24 // Sets the description for this handler. Used only when reporting validation 27 // Sets the description for this handler. Used only when reporting validation
25 // errors. 28 // errors.
26 void SetDescription(const std::string& description); 29 void SetDescription(const std::string& description);
27 30
28 // NOTE: |message| must have passed message header validation. 31 // NOTE: |message| must have passed message header validation.
(...skipping 15 matching lines...) Expand all
44 std::string description_; 47 std::string description_;
45 PipeControlMessageHandlerDelegate* const delegate_; 48 PipeControlMessageHandlerDelegate* const delegate_;
46 internal::SerializationContext context_; 49 internal::SerializationContext context_;
47 50
48 DISALLOW_COPY_AND_ASSIGN(PipeControlMessageHandler); 51 DISALLOW_COPY_AND_ASSIGN(PipeControlMessageHandler);
49 }; 52 };
50 53
51 } // namespace mojo 54 } // namespace mojo
52 55
53 #endif // MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_HANDLER_H_ 56 #endif // MOJO_PUBLIC_CPP_BINDINGS_PIPE_CONTROL_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/native_struct.h ('k') | mojo/public/cpp/bindings/pipe_control_message_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698