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

Side by Side Diff: chromecast/browser/media/cma_message_loop.cc

Issue 823923002: [Chromecast] Add IPC code on brower process side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
(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 #include "chromecast/browser/media/cma_message_loop.h"
6
7 #include "base/threading/thread.h"
8
9 namespace chromecast {
10 namespace media {
11
12 // static
13 scoped_refptr<base::MessageLoopProxy> CmaMessageLoop::GetMessageLoopProxy() {
14 return GetInstance()->thread_->message_loop_proxy();
15 }
16
17 // static
18 CmaMessageLoop* CmaMessageLoop::GetInstance() {
19 return Singleton<CmaMessageLoop>::get();
20 }
21
22 CmaMessageLoop::CmaMessageLoop()
23 : thread_(new base::Thread("CmaThread")) {
24 thread_->Start();
25 }
26
27 CmaMessageLoop::~CmaMessageLoop() {
28 // This will automatically shutdown the thread.
29 }
30
31 } // namespace media
32 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/media/cma_message_loop.h ('k') | chromecast/browser/media/media_pipeline_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698