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

Unified Diff: mojo/system/handle_signals_state.h

Issue 339193005: Mojo: Rename (Mojo)WaitFlagsState -> (Mojo)HandleSignalsState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/system/data_pipe.cc ('k') | mojo/system/local_data_pipe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/handle_signals_state.h
diff --git a/mojo/system/wait_flags_state.h b/mojo/system/handle_signals_state.h
similarity index 57%
rename from mojo/system/wait_flags_state.h
rename to mojo/system/handle_signals_state.h
index d5c1097ac56ab6f6efed942f872e3f576d990760..d76fafb302dd43f416d2b24aca80b6e97811b0da 100644
--- a/mojo/system/wait_flags_state.h
+++ b/mojo/system/handle_signals_state.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_SYSTEM_WAIT_FLAGS_STATE_H_
-#define MOJO_SYSTEM_WAIT_FLAGS_STATE_H_
+#ifndef MOJO_SYSTEM_HANDLE_SIGNALS_STATE_H_
+#define MOJO_SYSTEM_HANDLE_SIGNALS_STATE_H_
#include "base/macros.h"
#include "mojo/public/c/system/types.h"
@@ -12,19 +12,21 @@
namespace mojo {
namespace system {
-// Just "add" some constructors and methods to the C struct |MojoWaitFlagsState|
-// (for convenience). This should add no overhead.
-struct MOJO_SYSTEM_IMPL_EXPORT WaitFlagsState : public MojoWaitFlagsState {
- WaitFlagsState() {
+// Just "add" some constructors and methods to the C struct
+// |MojoHandleSignalsState| (for convenience). This should add no overhead.
+struct MOJO_SYSTEM_IMPL_EXPORT HandleSignalsState
+ : public MojoHandleSignalsState {
+ HandleSignalsState() {
satisfied_signals = MOJO_HANDLE_SIGNAL_NONE;
satisfiable_signals = MOJO_HANDLE_SIGNAL_NONE;
}
- WaitFlagsState(MojoHandleSignals satisfied, MojoHandleSignals satisfiable) {
+ HandleSignalsState(MojoHandleSignals satisfied,
+ MojoHandleSignals satisfiable) {
satisfied_signals = satisfied;
satisfiable_signals = satisfiable;
}
- bool equals(const WaitFlagsState& other) const {
+ bool equals(const HandleSignalsState& other) const {
return satisfied_signals == other.satisfied_signals &&
satisfiable_signals == other.satisfiable_signals;
}
@@ -39,10 +41,10 @@ struct MOJO_SYSTEM_IMPL_EXPORT WaitFlagsState : public MojoWaitFlagsState {
// (Copy and assignment allowed.)
};
-COMPILE_ASSERT(sizeof(WaitFlagsState) == sizeof(MojoWaitFlagsState),
- WaitFlagsState_should_add_no_overhead);
+COMPILE_ASSERT(sizeof(HandleSignalsState) == sizeof(MojoHandleSignalsState),
+ HandleSignalsState_should_add_no_overhead);
} // namespace system
} // namespace mojo
-#endif // MOJO_SYSTEM_WAIT_FLAGS_STATE_H_
+#endif // MOJO_SYSTEM_HANDLE_SIGNALS_STATE_H_
« no previous file with comments | « mojo/system/data_pipe.cc ('k') | mojo/system/local_data_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698