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

Side by Side Diff: mojo/public/cpp/bindings/lib/map_data_internal.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_DATA_INTERNAL_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_DATA_INTERNAL_H_
6 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_DATA_INTERNAL_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_DATA_INTERNAL_H_
7 7
8 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/array_internal.h" 8 #include "mojo/public/cpp/bindings/lib/array_internal.h"
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/validate_params.h" 9 #include "mojo/public/cpp/bindings/lib/validate_params.h"
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/validation_errors.h" 10 #include "mojo/public/cpp/bindings/lib/validation_errors.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/validation_util.h" 11 #include "mojo/public/cpp/bindings/lib/validation_util.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 namespace internal { 14 namespace internal {
15 15
16 inline const ArrayValidateParams* GetMapKeyValidateParamsDefault() { 16 inline const ArrayValidateParams* GetMapKeyValidateParamsDefault() {
17 // The memory allocated here never gets released to not cause an exit time 17 // The memory allocated here never gets released to not cause an exit time
18 // destructor. 18 // destructor.
19 static const ArrayValidateParams* validate_params = 19 static const ArrayValidateParams* validate_params =
20 new ArrayValidateParams(0, false, nullptr); 20 new ArrayValidateParams(0, false, nullptr);
21 return validate_params; 21 return validate_params;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 header_.num_bytes = sizeof(*this); 131 header_.num_bytes = sizeof(*this);
132 header_.version = 0; 132 header_.version = 0;
133 } 133 }
134 ~Map_Data() = delete; 134 ~Map_Data() = delete;
135 }; 135 };
136 static_assert(sizeof(Map_Data<char, char>) == 24, "Bad sizeof(Map_Data)"); 136 static_assert(sizeof(Map_Data<char, char>) == 24, "Bad sizeof(Map_Data)");
137 137
138 } // namespace internal 138 } // namespace internal
139 } // namespace mojo 139 } // namespace mojo
140 140
141 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_DATA_INTERNAL_H _ 141 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_MAP_DATA_INTERNAL_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/interface_ptr_internal.h ('k') | mojo/public/cpp/bindings/lib/map_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698