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

Side by Side Diff: media/base/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
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_BASE_RENDERER_H_ 5 #ifndef MEDIA_BASE_RENDERER_H_
6 #define MEDIA_BASE_RENDERER_H_ 6 #define MEDIA_BASE_RENDERER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Returns the current media time. 71 // Returns the current media time.
72 virtual base::TimeDelta GetMediaTime() = 0; 72 virtual base::TimeDelta GetMediaTime() = 0;
73 73
74 // Returns whether |this| renders audio. 74 // Returns whether |this| renders audio.
75 virtual bool HasAudio() = 0; 75 virtual bool HasAudio() = 0;
76 76
77 // Returns whether |this| renders video. 77 // Returns whether |this| renders video.
78 virtual bool HasVideo() = 0; 78 virtual bool HasVideo() = 0;
79 79
80 // Returns whether |this| supports pipeline suspend.
81 virtual bool AllowSuspend() = 0;
82
80 private: 83 private:
81 DISALLOW_COPY_AND_ASSIGN(Renderer); 84 DISALLOW_COPY_AND_ASSIGN(Renderer);
82 }; 85 };
83 86
84 } // namespace media 87 } // namespace media
85 88
86 #endif // MEDIA_BASE_RENDERER_H_ 89 #endif // MEDIA_BASE_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698