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

Side by Side Diff: media/renderers/renderer_impl.h

Issue 1129323003: Allow callers of TimeSource::GetWallClockTime() to suspend time. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 5 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 | « media/renderers/audio_renderer_impl.cc ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »
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 MEDIA_RENDERERS_RENDERER_IMPL_H_ 5 #ifndef MEDIA_RENDERERS_RENDERER_IMPL_H_
6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 private: 74 private:
75 enum State { 75 enum State {
76 STATE_UNINITIALIZED, 76 STATE_UNINITIALIZED,
77 STATE_INITIALIZING, 77 STATE_INITIALIZING,
78 STATE_FLUSHING, 78 STATE_FLUSHING,
79 STATE_PLAYING, 79 STATE_PLAYING,
80 STATE_ERROR 80 STATE_ERROR
81 }; 81 };
82 82
83 base::TimeTicks GetWallClockTime(base::TimeDelta time); 83 base::TimeTicks GetWallClockTime(base::TimeDelta time, int request_flags);
84 84
85 // Requests that this object notifies when a decryptor is ready through the 85 // Requests that this object notifies when a decryptor is ready through the
86 // |decryptor_ready_cb| provided. 86 // |decryptor_ready_cb| provided.
87 // If |decryptor_ready_cb| is null, the existing callback will be fired with 87 // If |decryptor_ready_cb| is null, the existing callback will be fired with
88 // nullptr immediately and reset. 88 // nullptr immediately and reset.
89 void SetDecryptorReadyCallback(const DecryptorReadyCB& decryptor_ready_cb); 89 void SetDecryptorReadyCallback(const DecryptorReadyCB& decryptor_ready_cb);
90 90
91 // Helper functions and callbacks for Initialize(). 91 // Helper functions and callbacks for Initialize().
92 void InitializeAudioRenderer(); 92 void InitializeAudioRenderer();
93 void OnAudioRendererInitializeDone(PipelineStatus status); 93 void OnAudioRendererInitializeDone(PipelineStatus status);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 base::WeakPtr<RendererImpl> weak_this_; 187 base::WeakPtr<RendererImpl> weak_this_;
188 base::WeakPtrFactory<RendererImpl> weak_factory_; 188 base::WeakPtrFactory<RendererImpl> weak_factory_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(RendererImpl); 190 DISALLOW_COPY_AND_ASSIGN(RendererImpl);
191 }; 191 };
192 192
193 } // namespace media 193 } // namespace media
194 194
195 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ 195 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « media/renderers/audio_renderer_impl.cc ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698