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

Side by Side Diff: mojo/public/cpp/bindings/lib/message_validator.cc

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/public/cpp/bindings/message_validator.h"
6
7 namespace mojo {
8 namespace internal {
9
10 ValidationError PassThroughValidator::Validate(const Message* message,
11 std::string* err) {
12 return ValidationError::NONE;
13 }
14
15 ValidationError RunValidatorsOnMessage(const MessageValidatorList& validators,
16 const Message* message,
17 std::string* err) {
18 for (const auto& validator : validators) {
19 auto result = validator->Validate(message, err);
20 if (result != ValidationError::NONE)
21 return result;
22 }
23
24 return ValidationError::NONE;
25 }
26
27 } // namespace internal
28 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/message_validation.cc ('k') | mojo/public/cpp/bindings/lib/no_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698