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

Unified Diff: mojo/edk/system/wait_set_dispatcher.h

Issue 2066093002: Add options validation code in WaitSetDispatcher::WaitSetAddImpl(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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 | « no previous file | mojo/edk/system/wait_set_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/wait_set_dispatcher.h
diff --git a/mojo/edk/system/wait_set_dispatcher.h b/mojo/edk/system/wait_set_dispatcher.h
index b749d576cf2d505ee142b053092e8bc6cd3c26da..56e8654b9e54a65985c711ce81de1300346c80d5 100644
--- a/mojo/edk/system/wait_set_dispatcher.h
+++ b/mojo/edk/system/wait_set_dispatcher.h
@@ -37,6 +37,11 @@ class WaitSetDispatcher final : public Dispatcher {
UserPointer<const MojoCreateWaitSetOptions> in_options,
MojoCreateWaitSetOptions* out_options);
+ // Like |ValidateCreateOptions()|, but for |MojoWaitSetAddOptions|.
+ static MojoResult ValidateWaitSetAddOptions(
+ UserPointer<const MojoWaitSetAddOptions> in_options,
+ MojoWaitSetAddOptions* out_options);
+
static util::RefPtr<WaitSetDispatcher> Create(
const MojoCreateWaitSetOptions& /*validated_options*/) {
return AdoptRef(new WaitSetDispatcher());
« no previous file with comments | « no previous file | mojo/edk/system/wait_set_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698