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

Side by Side Diff: chrome/renderer/media/cast_threads.h

Issue 174403002: Cast: Don't create threads for each CastSessionDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SingleThreadTaskRunner Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.cc ('k') | chrome/renderer/media/cast_threads.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Manages threads used by Cast Streaming Extensions API. There is a
6 // singleton object of this class in the renderer.
7 //
8 // There are two threads owned by this class:
9 // 1. Audio encode thread.
10 // 2. Video encode thread.
11 // These two threads are started this object is created.
12
13 #ifndef CHROME_RENDERER_MEDIA_CAST_THREADS_H_
14 #define CHROME_RENDERER_MEDIA_CAST_THREADS_H_
15
16 #include "base/lazy_instance.h"
17 #include "base/threading/thread.h"
18
19 class CastThreads {
20 public:
21 scoped_refptr<base::SingleThreadTaskRunner>
22 GetAudioEncodeMessageLoopProxy();
23 scoped_refptr<base::SingleThreadTaskRunner>
24 GetVideoEncodeMessageLoopProxy();
25
26 private:
27 friend struct base::DefaultLazyInstanceTraits<CastThreads>;
28
29 CastThreads();
30
31 base::Thread audio_encode_thread_;
32 base::Thread video_encode_thread_;
33
34 DISALLOW_COPY_AND_ASSIGN(CastThreads);
35 };
36
37 #endif // CHROME_RENDERER_MEDIA_CAST_THREADS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.cc ('k') | chrome/renderer/media/cast_threads.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698