| 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 #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_ | 5 #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_ |
| 6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_ | 6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "ppapi/c/ppb_audio_buffer.h" | 10 #include "ppapi/c/ppb_audio_buffer.h" |
| 9 #include "ppapi/shared_impl/ppapi_shared_export.h" | 11 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 10 | 12 |
| 11 namespace ppapi { | 13 namespace ppapi { |
| 12 | 14 |
| 13 class PPAPI_SHARED_EXPORT MediaStreamAudioTrackShared { | 15 class PPAPI_SHARED_EXPORT MediaStreamAudioTrackShared { |
| 14 public: | 16 public: |
| 15 struct Attributes { | 17 struct Attributes { |
| 16 Attributes() : buffers(0), duration(0) {} | 18 Attributes() : buffers(0), duration(0) {} |
| 17 int32_t buffers; | 19 int32_t buffers; |
| 18 int32_t duration; | 20 int32_t duration; |
| 19 }; | 21 }; |
| 20 | 22 |
| 21 static bool VerifyAttributes(const Attributes& attributes); | 23 static bool VerifyAttributes(const Attributes& attributes); |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 } // namespace ppapi | 26 } // namespace ppapi |
| 25 | 27 |
| 26 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_ | 28 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_AUDIO_TRACK_SHARED_H_ |
| OLD | NEW |