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

Side by Side Diff: mojo/edk/system/handle_signals_state.h

Issue 1346383004: EDK: Remove MOJO_SYSTEM_IMPL_EXPORT, system_impl_export.h, etc. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « mojo/edk/system/endpoint_relayer.h ('k') | mojo/edk/system/handle_table.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EDK_SYSTEM_HANDLE_SIGNALS_STATE_H_ 5 #ifndef MOJO_EDK_SYSTEM_HANDLE_SIGNALS_STATE_H_
6 #define MOJO_EDK_SYSTEM_HANDLE_SIGNALS_STATE_H_ 6 #define MOJO_EDK_SYSTEM_HANDLE_SIGNALS_STATE_H_
7 7
8 #include "mojo/edk/system/system_impl_export.h"
9 #include "mojo/public/c/system/types.h" 8 #include "mojo/public/c/system/types.h"
10 9
11 namespace mojo { 10 namespace mojo {
12 namespace system { 11 namespace system {
13 12
14 // Just "add" some constructors and methods to the C struct 13 // Just "add" some constructors and methods to the C struct
15 // |MojoHandleSignalsState| (for convenience). This should add no overhead. 14 // |MojoHandleSignalsState| (for convenience). This should add no overhead.
16 struct MOJO_SYSTEM_IMPL_EXPORT HandleSignalsState final 15 struct HandleSignalsState final : public MojoHandleSignalsState {
17 : public MojoHandleSignalsState {
18 HandleSignalsState() { 16 HandleSignalsState() {
19 satisfied_signals = MOJO_HANDLE_SIGNAL_NONE; 17 satisfied_signals = MOJO_HANDLE_SIGNAL_NONE;
20 satisfiable_signals = MOJO_HANDLE_SIGNAL_NONE; 18 satisfiable_signals = MOJO_HANDLE_SIGNAL_NONE;
21 } 19 }
22 HandleSignalsState(MojoHandleSignals satisfied, 20 HandleSignalsState(MojoHandleSignals satisfied,
23 MojoHandleSignals satisfiable) { 21 MojoHandleSignals satisfiable) {
24 satisfied_signals = satisfied; 22 satisfied_signals = satisfied;
25 satisfiable_signals = satisfiable; 23 satisfiable_signals = satisfiable;
26 } 24 }
27 25
(...skipping 12 matching lines...) Expand all
40 38
41 // (Copy and assignment allowed.) 39 // (Copy and assignment allowed.)
42 }; 40 };
43 static_assert(sizeof(HandleSignalsState) == sizeof(MojoHandleSignalsState), 41 static_assert(sizeof(HandleSignalsState) == sizeof(MojoHandleSignalsState),
44 "HandleSignalsState should add no overhead"); 42 "HandleSignalsState should add no overhead");
45 43
46 } // namespace system 44 } // namespace system
47 } // namespace mojo 45 } // namespace mojo
48 46
49 #endif // MOJO_EDK_SYSTEM_HANDLE_SIGNALS_STATE_H_ 47 #endif // MOJO_EDK_SYSTEM_HANDLE_SIGNALS_STATE_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/endpoint_relayer.h ('k') | mojo/edk/system/handle_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698