| Index: media/mojo/services/utility_mojo_media_client.h
|
| diff --git a/media/mojo/services/utility_mojo_media_client.h b/media/mojo/services/utility_mojo_media_client.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bf1992a5e1cd96320b9e689f45aead93cd5cd417
|
| --- /dev/null
|
| +++ b/media/mojo/services/utility_mojo_media_client.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MEDIA_MOJO_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_
|
| +#define MEDIA_MOJO_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_
|
| +
|
| +#include <memory>
|
| +
|
| +#include "media/mojo/services/mojo_media_client.h"
|
| +
|
| +namespace base {
|
| +class SingleThreadTaskRunner;
|
| +}
|
| +
|
| +namespace media {
|
| +
|
| +class VideoDecoder;
|
| +
|
| +// Default MojoMediaClient for MediaService.
|
| +class UtilityMojoMediaClient : public MojoMediaClient {
|
| + public:
|
| + UtilityMojoMediaClient();
|
| + ~UtilityMojoMediaClient() final;
|
| +
|
| + // MojoMediaClient implementation.
|
| + void Initialize() final;
|
| + std::unique_ptr<VideoDecoder> CreateVideoDecoder(
|
| + scoped_refptr<base::SingleThreadTaskRunner> task_runner) final;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(UtilityMojoMediaClient);
|
| +};
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_MOJO_SERVICES_UTILITY_MOJO_MEDIA_CLIENT_H_
|
|
|