| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MEDIA_BASE_MEDIA_URL_DEMUXER_H_ | 5 #ifndef MEDIA_BASE_MEDIA_URL_DEMUXER_H_ |
| 6 #define MEDIA_BASE_MEDIA_URL_DEMUXER_H_ | 6 #define MEDIA_BASE_MEDIA_URL_DEMUXER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "media/base/demuxer.h" | 13 #include "media/base/demuxer.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 namespace base { |
| 17 class SingleThreadTaskRunner; |
| 18 } |
| 19 |
| 16 namespace media { | 20 namespace media { |
| 17 | 21 |
| 18 // Class that saves a URL for later retrieval. To be used in conjunction with | 22 // Class that saves a URL for later retrieval. To be used in conjunction with |
| 19 // the MediaPlayerRenderer. | 23 // the MediaPlayerRenderer. |
| 20 // | 24 // |
| 21 // Its primary purpose is to act as a dummy Demuxer, when there is no need | 25 // Its primary purpose is to act as a dummy Demuxer, when there is no need |
| 22 // for DemuxerStreams (e.g. in the MediaPlayerRenderer case). For the most part, | 26 // for DemuxerStreams (e.g. in the MediaPlayerRenderer case). For the most part, |
| 23 // its implementation of the Demuxer are NOPs that return the default values and | 27 // its implementation of the Demuxer are NOPs that return the default values and |
| 24 // fire any provided callbacks immediately. | 28 // fire any provided callbacks immediately. |
| 25 // | 29 // |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 MediaUrlParams params_; | 65 MediaUrlParams params_; |
| 62 | 66 |
| 63 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 67 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 64 | 68 |
| 65 DISALLOW_COPY_AND_ASSIGN(MediaUrlDemuxer); | 69 DISALLOW_COPY_AND_ASSIGN(MediaUrlDemuxer); |
| 66 }; | 70 }; |
| 67 | 71 |
| 68 } // namespace media | 72 } // namespace media |
| 69 | 73 |
| 70 #endif // MEDIA_BASE_MEDIA_URL_DEMUXER_H_ | 74 #endif // MEDIA_BASE_MEDIA_URL_DEMUXER_H_ |
| OLD | NEW |