| OLD | NEW |
| 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 // The serialization format is as follows: | 5 // The serialization format is as follows: |
| 6 // 16-bit integer describing the following LogMetadata proto size in bytes. | 6 // 16-bit integer describing the following LogMetadata proto size in bytes. |
| 7 // The LogMetadata proto. | 7 // The LogMetadata proto. |
| 8 // 32-bit integer describing number of frame events. | 8 // 32-bit integer describing number of frame events. |
| 9 // (The following repeated for number of frame events): | 9 // (The following repeated for number of frame events): |
| 10 // 16-bit integer describing the following AggregatedFrameEvent proto size | 10 // 16-bit integer describing the following AggregatedFrameEvent proto size |
| 11 // in bytes. | 11 // in bytes. |
| 12 // The AggregatedFrameEvent proto. | 12 // The AggregatedFrameEvent proto. |
| 13 // 32-bit integer describing number of packet events. | 13 // 32-bit integer describing number of packet events. |
| 14 // (The following repeated for number of packet events): | 14 // (The following repeated for number of packet events): |
| 15 // 16-bit integer describing the following AggregatedPacketEvent proto | 15 // 16-bit integer describing the following AggregatedPacketEvent proto |
| 16 // size in bytes. | 16 // size in bytes. |
| 17 // The AggregatedPacketEvent proto. | 17 // The AggregatedPacketEvent proto. |
| 18 | 18 |
| 19 #include "media/cast/logging/log_serializer.h" | 19 #include "media/cast/logging/log_serializer.h" |
| 20 | 20 |
| 21 #include <stdint.h> |
| 22 |
| 21 #include "base/big_endian.h" | 23 #include "base/big_endian.h" |
| 22 #include "base/logging.h" | 24 #include "base/logging.h" |
| 23 #include "base/memory/scoped_ptr.h" | 25 #include "base/memory/scoped_ptr.h" |
| 24 #include "third_party/zlib/zlib.h" | 26 #include "third_party/zlib/zlib.h" |
| 25 | 27 |
| 26 namespace media { | 28 namespace media { |
| 27 namespace cast { | 29 namespace cast { |
| 28 | 30 |
| 29 namespace { | 31 namespace { |
| 30 | 32 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 frame_events, | 183 frame_events, |
| 182 packet_events, | 184 packet_events, |
| 183 max_output_bytes, | 185 max_output_bytes, |
| 184 output, | 186 output, |
| 185 output_bytes); | 187 output_bytes); |
| 186 } | 188 } |
| 187 } | 189 } |
| 188 | 190 |
| 189 } // namespace cast | 191 } // namespace cast |
| 190 } // namespace media | 192 } // namespace media |
| OLD | NEW |