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

Side by Side Diff: media/cast/cast_environment.h

Issue 34623008: Change to calculate the real NTP in TimeTicks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CAST_CAST_ENVIRONMENT_H_ 5 #ifndef MEDIA_CAST_CAST_ENVIRONMENT_H_
6 #define MEDIA_CAST_CAST_ENVIRONMENT_H_ 6 #define MEDIA_CAST_CAST_ENVIRONMENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/task_runner.h" 10 #include "base/task_runner.h"
(...skipping 15 matching lines...) Expand all
26 AUDIO_ENCODER, 26 AUDIO_ENCODER,
27 // The audio decoder thread is where all receive side audio processing is 27 // The audio decoder thread is where all receive side audio processing is
28 // done, primarily decoding but also error concealment and re-sampling. 28 // done, primarily decoding but also error concealment and re-sampling.
29 AUDIO_DECODER, 29 AUDIO_DECODER,
30 // The video encoder thread is where the video encode processing is done. 30 // The video encoder thread is where the video encode processing is done.
31 VIDEO_ENCODER, 31 VIDEO_ENCODER,
32 // The video decoder thread is where the video decode processing is done. 32 // The video decoder thread is where the video decode processing is done.
33 VIDEO_DECODER, 33 VIDEO_DECODER,
34 }; 34 };
35 35
36 // For real applications (not tests) the clock provided should be a
37 // CastNtpTickClock.
36 CastEnvironment(base::TickClock* clock, 38 CastEnvironment(base::TickClock* clock,
37 scoped_refptr<base::TaskRunner> main_thread_proxy, 39 scoped_refptr<base::TaskRunner> main_thread_proxy,
38 scoped_refptr<base::TaskRunner> audio_encode_thread_proxy, 40 scoped_refptr<base::TaskRunner> audio_encode_thread_proxy,
39 scoped_refptr<base::TaskRunner> audio_decode_thread_proxy, 41 scoped_refptr<base::TaskRunner> audio_decode_thread_proxy,
40 scoped_refptr<base::TaskRunner> video_encode_thread_proxy, 42 scoped_refptr<base::TaskRunner> video_encode_thread_proxy,
41 scoped_refptr<base::TaskRunner> video_decode_thread_proxy); 43 scoped_refptr<base::TaskRunner> video_decode_thread_proxy);
42 44
43 // These are the same methods in message_loop.h, but are guaranteed to either 45 // These are the same methods in message_loop.h, but are guaranteed to either
44 // get posted to the MessageLoop if it's still alive, or be deleted otherwise. 46 // get posted to the MessageLoop if it's still alive, or be deleted otherwise.
45 // They return true iff the thread existed and the task was posted. Note that 47 // They return true iff the thread existed and the task was posted. Note that
(...skipping 28 matching lines...) Expand all
74 scoped_refptr<base::TaskRunner> video_encode_thread_proxy_; 76 scoped_refptr<base::TaskRunner> video_encode_thread_proxy_;
75 scoped_refptr<base::TaskRunner> video_decode_thread_proxy_; 77 scoped_refptr<base::TaskRunner> video_decode_thread_proxy_;
76 78
77 DISALLOW_COPY_AND_ASSIGN(CastEnvironment); 79 DISALLOW_COPY_AND_ASSIGN(CastEnvironment);
78 }; 80 };
79 81
80 } // namespace cast 82 } // namespace cast
81 } // namespace media 83 } // namespace media
82 84
83 #endif // MEDIA_CAST_CAST_ENVIRONMENT_H_ 85 #endif // MEDIA_CAST_CAST_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698