| 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 MOJO_SERVICES_MEDIA_FACTORY_NETWORK_READER_IMPL_H_ | 5 #ifndef MOJO_SERVICES_MEDIA_FACTORY_NETWORK_READER_IMPL_H_ |
| 6 #define MOJO_SERVICES_MEDIA_FACTORY_NETWORK_READER_IMPL_H_ | 6 #define MOJO_SERVICES_MEDIA_FACTORY_NETWORK_READER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "mojo/public/cpp/bindings/binding.h" | 10 #include "mojo/public/cpp/bindings/binding.h" |
| 11 #include "mojo/services/media/core/interfaces/seeking_reader.mojom.h" | 11 #include "mojo/services/media/core/interfaces/seeking_reader.mojom.h" |
| 12 #include "mojo/services/network/interfaces/network_service.mojom.h" | 12 #include "mojo/services/network/interfaces/network_service.mojom.h" |
| 13 #include "services/media/factory_service/factory_service.h" | 13 #include "services/media/factory_service/factory_service.h" |
| 14 #include "services/media/framework/util/incident.h" | 14 #include "services/util/cpp/incident.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace media { | 17 namespace media { |
| 18 | 18 |
| 19 // Mojo agent that decodes a stream. | 19 // Mojo agent that decodes a stream. |
| 20 class NetworkReaderImpl : public MediaFactoryService::Product<SeekingReader>, | 20 class NetworkReaderImpl : public MediaFactoryService::Product<SeekingReader>, |
| 21 public SeekingReader { | 21 public SeekingReader { |
| 22 public: | 22 public: |
| 23 static std::shared_ptr<NetworkReaderImpl> Create( | 23 static std::shared_ptr<NetworkReaderImpl> Create( |
| 24 const String& url, | 24 const String& url, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 53 MediaResult result_ = MediaResult::OK; | 53 MediaResult result_ = MediaResult::OK; |
| 54 uint64 size_ = kUnknownSize; | 54 uint64 size_ = kUnknownSize; |
| 55 bool can_seek_ = false; | 55 bool can_seek_ = false; |
| 56 Incident ready_; | 56 Incident ready_; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace media | 59 } // namespace media |
| 60 } // namespace mojo | 60 } // namespace mojo |
| 61 | 61 |
| 62 #endif // MOJO_SERVICES_MEDIA_FACTORY_NETWORK_READER_IMPL_H_ | 62 #endif // MOJO_SERVICES_MEDIA_FACTORY_NETWORK_READER_IMPL_H_ |
| OLD | NEW |