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

Side by Side Diff: remoting/client/client_context.cc

Issue 15782010: Update remoting/ and jingle/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « remoting/client/chromoting_client.cc ('k') | remoting/client/plugin/chromoting_instance.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "remoting/client/client_context.h" 5 #include "remoting/client/client_context.h"
6 6
7 namespace remoting { 7 namespace remoting {
8 8
9 ClientContext::ClientContext(base::SingleThreadTaskRunner* main_task_runner) 9 ClientContext::ClientContext(base::SingleThreadTaskRunner* main_task_runner)
10 : main_task_runner_(main_task_runner), 10 : main_task_runner_(main_task_runner),
(...skipping 10 matching lines...) Expand all
21 audio_decode_thread_.Start(); 21 audio_decode_thread_.Start();
22 } 22 }
23 23
24 void ClientContext::Stop() { 24 void ClientContext::Stop() {
25 // Stop all the threads. 25 // Stop all the threads.
26 decode_thread_.Stop(); 26 decode_thread_.Stop();
27 audio_decode_thread_.Stop(); 27 audio_decode_thread_.Stop();
28 } 28 }
29 29
30 base::SingleThreadTaskRunner* ClientContext::main_task_runner() { 30 base::SingleThreadTaskRunner* ClientContext::main_task_runner() {
31 return main_task_runner_; 31 return main_task_runner_.get();
32 } 32 }
33 33
34 base::SingleThreadTaskRunner* ClientContext::decode_task_runner() { 34 base::SingleThreadTaskRunner* ClientContext::decode_task_runner() {
35 return decode_thread_.message_loop_proxy(); 35 return decode_thread_.message_loop_proxy();
36 } 36 }
37 37
38 base::SingleThreadTaskRunner* ClientContext::audio_decode_task_runner() { 38 base::SingleThreadTaskRunner* ClientContext::audio_decode_task_runner() {
39 return audio_decode_thread_.message_loop_proxy(); 39 return audio_decode_thread_.message_loop_proxy();
40 } 40 }
41 41
42 } // namespace remoting 42 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698