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

Side by Side Diff: chromecast/media/cma/ipc_streamer/coded_frame_provider_host.h

Issue 630663003: replace OVERRIDE and FINAL with override and final in chromecast/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_MEDIA_CMA_IPC_STREAMER_CODED_FRAME_PROVIDER_HOST_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_IPC_STREAMER_CODED_FRAME_PROVIDER_HOST_H_
6 #define CHROMECAST_MEDIA_CMA_IPC_STREAMER_CODED_FRAME_PROVIDER_HOST_H_ 6 #define CHROMECAST_MEDIA_CMA_IPC_STREAMER_CODED_FRAME_PROVIDER_HOST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 10 matching lines...) Expand all
21 class CodedFrameProviderHost : public CodedFrameProvider { 21 class CodedFrameProviderHost : public CodedFrameProvider {
22 public: 22 public:
23 // Note: if the media message fifo is located into shared memory, 23 // Note: if the media message fifo is located into shared memory,
24 // the caller must make sure the shared memory segment is valid 24 // the caller must make sure the shared memory segment is valid
25 // during the whole lifetime of this object. 25 // during the whole lifetime of this object.
26 explicit CodedFrameProviderHost( 26 explicit CodedFrameProviderHost(
27 scoped_ptr<MediaMessageFifo> media_message_fifo); 27 scoped_ptr<MediaMessageFifo> media_message_fifo);
28 virtual ~CodedFrameProviderHost(); 28 virtual ~CodedFrameProviderHost();
29 29
30 // CodedFrameProvider implementation. 30 // CodedFrameProvider implementation.
31 virtual void Read(const ReadCB& read_cb) OVERRIDE; 31 virtual void Read(const ReadCB& read_cb) override;
32 virtual void Flush(const base::Closure& flush_cb) OVERRIDE; 32 virtual void Flush(const base::Closure& flush_cb) override;
33 33
34 // Invoked when some data has been written into the fifo. 34 // Invoked when some data has been written into the fifo.
35 void OnFifoWriteEvent(); 35 void OnFifoWriteEvent();
36 base::Closure GetFifoWriteEventCb(); 36 base::Closure GetFifoWriteEventCb();
37 37
38 private: 38 private:
39 void ReadMessages(); 39 void ReadMessages();
40 40
41 base::ThreadChecker thread_checker_; 41 base::ThreadChecker thread_checker_;
42 42
43 // Fifo holding the frames. 43 // Fifo holding the frames.
44 scoped_ptr<MediaMessageFifo> fifo_; 44 scoped_ptr<MediaMessageFifo> fifo_;
45 45
46 ReadCB read_cb_; 46 ReadCB read_cb_;
47 47
48 // Audio/video configuration for the next A/V buffer. 48 // Audio/video configuration for the next A/V buffer.
49 ::media::AudioDecoderConfig audio_config_; 49 ::media::AudioDecoderConfig audio_config_;
50 ::media::VideoDecoderConfig video_config_; 50 ::media::VideoDecoderConfig video_config_;
51 51
52 base::WeakPtr<CodedFrameProviderHost> weak_this_; 52 base::WeakPtr<CodedFrameProviderHost> weak_this_;
53 base::WeakPtrFactory<CodedFrameProviderHost> weak_factory_; 53 base::WeakPtrFactory<CodedFrameProviderHost> weak_factory_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(CodedFrameProviderHost); 55 DISALLOW_COPY_AND_ASSIGN(CodedFrameProviderHost);
56 }; 56 };
57 57
58 } // namespace media 58 } // namespace media
59 } // namespace chromecast 59 } // namespace chromecast
60 60
61 #endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_CODED_FRAME_PROVIDER_HOST_H_ 61 #endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_CODED_FRAME_PROVIDER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698