Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: services/media/factory_service/network_reader_impl.h

Issue 2024953003: Motown: Move framework/util/incident* so other services can use it (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698