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

Side by Side Diff: chromecast/renderer/media/cma_renderer.h

Issue 1972783003: Disable idle suspend for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted all content/ changes, API now in Renderer 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
« no previous file with comments | « no previous file | chromecast/renderer/media/cma_renderer.cc » ('j') | media/base/pipeline_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_MEDIA_CMA_RENDERER_H_ 5 #ifndef CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_
6 #define CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ 6 #define CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const base::Closure& ended_cb, 51 const base::Closure& ended_cb,
52 const ::media::PipelineStatusCB& error_cb, 52 const ::media::PipelineStatusCB& error_cb,
53 const base::Closure& waiting_for_decryption_key_cb) override; 53 const base::Closure& waiting_for_decryption_key_cb) override;
54 void Flush(const base::Closure& flush_cb) override; 54 void Flush(const base::Closure& flush_cb) override;
55 void StartPlayingFrom(base::TimeDelta time) override; 55 void StartPlayingFrom(base::TimeDelta time) override;
56 void SetPlaybackRate(double playback_rate) override; 56 void SetPlaybackRate(double playback_rate) override;
57 void SetVolume(float volume) override; 57 void SetVolume(float volume) override;
58 base::TimeDelta GetMediaTime() override; 58 base::TimeDelta GetMediaTime() override;
59 bool HasAudio() override; 59 bool HasAudio() override;
60 bool HasVideo() override; 60 bool HasVideo() override;
61 bool AllowSuspend() override;
61 void SetCdm(::media::CdmContext* cdm_context, 62 void SetCdm(::media::CdmContext* cdm_context,
62 const ::media::CdmAttachedCB& cdm_attached_cb) override; 63 const ::media::CdmAttachedCB& cdm_attached_cb) override;
63 64
64 private: 65 private:
65 enum State { 66 enum State {
66 kUninitialized, 67 kUninitialized,
67 kPlaying, 68 kPlaying,
68 kFlushed, 69 kFlushed,
69 kError, 70 kError,
70 }; 71 };
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 base::WeakPtr<CmaRenderer> weak_this_; 151 base::WeakPtr<CmaRenderer> weak_this_;
151 base::WeakPtrFactory<CmaRenderer> weak_factory_; 152 base::WeakPtrFactory<CmaRenderer> weak_factory_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(CmaRenderer); 154 DISALLOW_COPY_AND_ASSIGN(CmaRenderer);
154 }; 155 };
155 156
156 } // namespace media 157 } // namespace media
157 } // namespace chromecast 158 } // namespace chromecast
158 159
159 #endif // CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ 160 #endif // CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/renderer/media/cma_renderer.cc » ('j') | media/base/pipeline_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698