OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "chrome/browser/media/router/mojo/media_status_struct_traits.h" | 5 #include "components/media_router/mojo/media_status_struct_traits.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 | 10 |
11 // static | 11 // static |
12 bool StructTraits<media_router::mojom::MediaStatusDataView, | 12 bool StructTraits<media_router::mojom::MediaStatusDataView, |
13 media_router::MediaStatus>:: | 13 media_router::MediaStatus>:: |
14 Read(media_router::mojom::MediaStatusDataView data, | 14 Read(media_router::mojom::MediaStatusDataView data, |
15 media_router::MediaStatus* out) { | 15 media_router::MediaStatus* out) { |
(...skipping 16 matching lines...) Expand all Loading... |
32 if (!data.ReadDuration(&out->duration)) | 32 if (!data.ReadDuration(&out->duration)) |
33 return false; | 33 return false; |
34 | 34 |
35 if (!data.ReadCurrentTime(&out->current_time)) | 35 if (!data.ReadCurrentTime(&out->current_time)) |
36 return false; | 36 return false; |
37 | 37 |
38 return true; | 38 return true; |
39 } | 39 } |
40 | 40 |
41 } // namespace mojo | 41 } // namespace mojo |
OLD | NEW |