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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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
Index: third_party/mojo/src/mojo/public/cpp/bindings/lib/validate_params.h
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/lib/validate_params.h b/third_party/mojo/src/mojo/public/cpp/bindings/lib/validate_params.h
deleted file mode 100644
index 9871985d406cb50544fabd0547dc06735d877424..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/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 THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_VALIDATE_PARAMS_H_
-#define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_VALIDATE_PARAMS_H_
-
-#include "third_party/mojo/src/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 // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_VALIDATE_PARAMS_H_

Powered by Google App Engine
This is Rietveld 408576698