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 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_STATUS_H_ | 5 #ifndef CHROME_COMMON_MEDIA_ROUTER_MEDIA_STATUS_H_ |
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_STATUS_H_ | 6 #define CHROME_COMMON_MEDIA_ROUTER_MEDIA_STATUS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 | 11 |
12 namespace media_router { | 12 namespace media_router { |
13 | 13 |
14 // Represents the current state of a media content. | 14 // Represents the current state of a media content. |
15 struct MediaStatus { | 15 struct MediaStatus { |
16 public: | 16 public: |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // The length of the media. A value of zero indicates that this is a media | 53 // The length of the media. A value of zero indicates that this is a media |
54 // with no set duration (e.g. a live stream). | 54 // with no set duration (e.g. a live stream). |
55 base::TimeDelta duration; | 55 base::TimeDelta duration; |
56 | 56 |
57 // Current playback position. Must be less than or equal to |duration|. | 57 // Current playback position. Must be less than or equal to |duration|. |
58 base::TimeDelta current_time; | 58 base::TimeDelta current_time; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace media_router | 61 } // namespace media_router |
62 | 62 |
63 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_STATUS_H_ | 63 #endif // CHROME_COMMON_MEDIA_ROUTER_MEDIA_STATUS_H_ |
OLD | NEW |