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

Side by Side Diff: media/mojo/services/mojo_video_decoder.h

Issue 1977173002: Rename media::interfaces to media::mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 MEDIA_MOJO_SERVICES_MOJO_VIDEO_DECODER_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_VIDEO_DECODER_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_VIDEO_DECODER_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_VIDEO_DECODER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/video_decoder.h" 10 #include "media/base/video_decoder.h"
11 11
12 namespace base { 12 namespace base {
13 class SingleThreadTaskRunner; 13 class SingleThreadTaskRunner;
14 } 14 }
15 15
16 namespace media { 16 namespace media {
17 17
18 // A VideoDecoder that proxies to an interfaces::VideoDecoder. 18 // A VideoDecoder that proxies to an mojom::VideoDecoder.
sandersd (OOO until July 31) 2016/05/16 18:16:50 Nit: This should be 'a mojom', I suspect this issu
jrummell 2016/05/16 21:34:41 Done. Actually only 3 places, others were 'a' alre
19 class MojoVideoDecoder : public VideoDecoder { 19 class MojoVideoDecoder : public VideoDecoder {
20 public: 20 public:
21 MojoVideoDecoder(); 21 MojoVideoDecoder();
22 ~MojoVideoDecoder() final; 22 ~MojoVideoDecoder() final;
23 23
24 // VideoDecoder implementation. 24 // VideoDecoder implementation.
25 std::string GetDisplayName() const final; 25 std::string GetDisplayName() const final;
26 void Initialize(const VideoDecoderConfig& config, 26 void Initialize(const VideoDecoderConfig& config,
27 bool low_delay, 27 bool low_delay,
28 CdmContext* cdm_context, 28 CdmContext* cdm_context,
29 const InitCB& init_cb, 29 const InitCB& init_cb,
30 const OutputCB& output_cb) final; 30 const OutputCB& output_cb) final;
31 void Decode(const scoped_refptr<DecoderBuffer>& buffer, 31 void Decode(const scoped_refptr<DecoderBuffer>& buffer,
32 const DecodeCB& decode_cb) final; 32 const DecodeCB& decode_cb) final;
33 void Reset(const base::Closure& closure) final; 33 void Reset(const base::Closure& closure) final;
34 bool NeedsBitstreamConversion() const final; 34 bool NeedsBitstreamConversion() const final;
35 bool CanReadWithoutStalling() const final; 35 bool CanReadWithoutStalling() const final;
36 int GetMaxDecodeRequests() const final; 36 int GetMaxDecodeRequests() const final;
37 37
38 private: 38 private:
39 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 39 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(MojoVideoDecoder); 41 DISALLOW_COPY_AND_ASSIGN(MojoVideoDecoder);
42 }; 42 };
43 43
44 } // namespace media 44 } // namespace media
45 45
46 #endif // MEDIA_MOJO_SERVICES_MOJO_VIDEO_DECODER_H_ 46 #endif // MEDIA_MOJO_SERVICES_MOJO_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_renderer_service.cc ('k') | media/mojo/services/service_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698