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

Side by Side Diff: mojo/public/cpp/bindings/lib/array_serialization.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_ARRAY_SERIALIZATION_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_
6 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_
7 7
8 #include <string.h> // For |memcpy()|. 8 #include <string.h> // For |memcpy()|.
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "third_party/mojo/src/mojo/public/c/system/macros.h" 12 #include "mojo/public/c/system/macros.h"
13 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/array_internal.h" 13 #include "mojo/public/cpp/bindings/lib/array_internal.h"
14 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/map_serialization.h" 14 #include "mojo/public/cpp/bindings/lib/map_serialization.h"
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/string_serialization .h" 15 #include "mojo/public/cpp/bindings/lib/string_serialization.h"
16 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/template_util.h" 16 #include "mojo/public/cpp/bindings/lib/template_util.h"
17 #include "third_party/mojo/src/mojo/public/cpp/bindings/lib/validation_errors.h" 17 #include "mojo/public/cpp/bindings/lib/validation_errors.h"
18 18
19 namespace mojo { 19 namespace mojo {
20 20
21 template <typename E> 21 template <typename E>
22 inline size_t GetSerializedSize_(const Array<E>& input); 22 inline size_t GetSerializedSize_(const Array<E>& input);
23 23
24 template <typename E, typename F> 24 template <typename E, typename F>
25 inline void SerializeArray_( 25 inline void SerializeArray_(
26 Array<E> input, 26 Array<E> input,
27 internal::Buffer* buf, 27 internal::Buffer* buf,
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 inline void Deserialize_(internal::Array_Data<F>* input, Array<E>* output) { 328 inline void Deserialize_(internal::Array_Data<F>* input, Array<E>* output) {
329 if (input) { 329 if (input) {
330 internal::ArraySerializer<E, F>::DeserializeElements(input, output); 330 internal::ArraySerializer<E, F>::DeserializeElements(input, output);
331 } else { 331 } else {
332 output->reset(); 332 output->reset();
333 } 333 }
334 } 334 }
335 335
336 } // namespace mojo 336 } // namespace mojo
337 337
338 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION _H_ 338 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ARRAY_SERIALIZATION_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_internal.cc ('k') | mojo/public/cpp/bindings/lib/bindings_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698