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

Unified Diff: mojo/public/cpp/bindings/lib/validate_params.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/lib/union_accessor.h ('k') | mojo/public/cpp/bindings/lib/validation_errors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/validate_params.h
diff --git a/mojo/public/cpp/bindings/lib/validate_params.h b/mojo/public/cpp/bindings/lib/validate_params.h
deleted file mode 100644
index 274a01233906a5da9e09728162037db5e9262c12..0000000000000000000000000000000000000000
--- a/mojo/public/cpp/bindings/lib/validate_params.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_VALIDATE_PARAMS_H_
-#define MOJO_PUBLIC_CPP_BINDINGS_LIB_VALIDATE_PARAMS_H_
-
-#include "mojo/public/cpp/system/macros.h"
-
-namespace mojo {
-namespace internal {
-
-class ArrayValidateParams {
- public:
- // ArrayValidateParams takes ownership of |in_element_validate params|.
- ArrayValidateParams(uint32_t in_expected_num_elements,
- bool in_element_is_nullable,
- ArrayValidateParams* in_element_validate_params)
- : expected_num_elements(in_expected_num_elements),
- element_is_nullable(in_element_is_nullable),
- element_validate_params(in_element_validate_params) {}
-
- ~ArrayValidateParams() {
- if (element_validate_params)
- delete element_validate_params;
- }
-
- // TODO(vtl): The members of this class shouldn't be public.
-
- // If |expected_num_elements| is not 0, the array is expected to have exactly
- // that number of elements.
- uint32_t expected_num_elements;
-
- // Whether the elements are nullable.
- bool element_is_nullable;
-
- // Validation information for elements. It is either a pointer to another
- // instance of ArrayValidateParams (if elements are arrays or maps), or
- // nullptr. In the case of maps, this is used to validate the value array.
- ArrayValidateParams* element_validate_params;
-
- private:
- MOJO_DISALLOW_COPY_AND_ASSIGN(ArrayValidateParams);
-};
-
-} // namespace internal
-} // namespace mojo
-
-#endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_VALIDATE_PARAMS_H_
« no previous file with comments | « mojo/public/cpp/bindings/lib/union_accessor.h ('k') | mojo/public/cpp/bindings/lib/validation_errors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698