OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "mojo/public/cpp/bindings/lib/pickle_buffer.h" | 5 #include "mojo/public/cpp/bindings/lib/pickle_buffer.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
7 #include <stdlib.h> | 9 #include <stdlib.h> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/pickle.h" | 13 #include "base/pickle.h" |
12 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" | 14 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
13 | 15 |
14 namespace mojo { | 16 namespace mojo { |
15 namespace internal { | 17 namespace internal { |
16 | 18 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 89 } |
88 char* p = static_cast<char*>(storage_->Claim(allocation_size)); | 90 char* p = static_cast<char*>(storage_->Claim(allocation_size)); |
89 DCHECK_EQ(storage_->GetData(), previous_data_location); | 91 DCHECK_EQ(storage_->GetData(), previous_data_location); |
90 return p + padding_bytes; | 92 return p + padding_bytes; |
91 } | 93 } |
92 | 94 |
93 PickleBuffer* PickleBuffer::AsPickleBuffer() { return this; } | 95 PickleBuffer* PickleBuffer::AsPickleBuffer() { return this; } |
94 | 96 |
95 } // namespace internal | 97 } // namespace internal |
96 } // namespace mojo | 98 } // namespace mojo |
OLD | NEW |