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

Side by Side Diff: media/mojo/services/mojo_renderer_impl.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
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 MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const base::Closure& waiting_for_decryption_key_cb) override; 47 const base::Closure& waiting_for_decryption_key_cb) override;
48 void SetCdm(CdmContext* cdm_context, 48 void SetCdm(CdmContext* cdm_context,
49 const CdmAttachedCB& cdm_attached_cb) override; 49 const CdmAttachedCB& cdm_attached_cb) override;
50 void Flush(const base::Closure& flush_cb) override; 50 void Flush(const base::Closure& flush_cb) override;
51 void StartPlayingFrom(base::TimeDelta time) override; 51 void StartPlayingFrom(base::TimeDelta time) override;
52 void SetPlaybackRate(double playback_rate) override; 52 void SetPlaybackRate(double playback_rate) override;
53 void SetVolume(float volume) override; 53 void SetVolume(float volume) override;
54 base::TimeDelta GetMediaTime() override; 54 base::TimeDelta GetMediaTime() override;
55 bool HasAudio() override; 55 bool HasAudio() override;
56 bool HasVideo() override; 56 bool HasVideo() override;
57 bool AllowSuspend() override;
57 58
58 private: 59 private:
59 // interfaces::RendererClient implementation, dispatched on the 60 // interfaces::RendererClient implementation, dispatched on the
60 // |task_runner_|. 61 // |task_runner_|.
61 void OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) override; 62 void OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) override;
62 void OnBufferingStateChange(interfaces::BufferingState state) override; 63 void OnBufferingStateChange(interfaces::BufferingState state) override;
63 void OnEnded() override; 64 void OnEnded() override;
64 void OnError() override; 65 void OnError() override;
65 66
66 // Callback for connection error on |remote_renderer_|. 67 // Callback for connection error on |remote_renderer_|.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Lock used to serialize access for |time_|. 99 // Lock used to serialize access for |time_|.
99 mutable base::Lock lock_; 100 mutable base::Lock lock_;
100 base::TimeDelta time_; 101 base::TimeDelta time_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(MojoRendererImpl); 103 DISALLOW_COPY_AND_ASSIGN(MojoRendererImpl);
103 }; 104 };
104 105
105 } // namespace media 106 } // namespace media
106 107
107 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ 108 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698