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

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

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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/base/rate_counter.h ('k') | remoting/client/frame_consumer_proxy.h » ('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 #ifndef REMOTING_CLIENT_CLIENT_CONTEXT_H_ 5 #ifndef REMOTING_CLIENT_CLIENT_CONTEXT_H_
6 #define REMOTING_CLIENT_CLIENT_CONTEXT_H_ 6 #define REMOTING_CLIENT_CLIENT_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 11
12 namespace base { 12 namespace base {
13 class SingleThreadTaskRunner; 13 class SingleThreadTaskRunner;
14 } // namespace base 14 } // namespace base
15 15
16 namespace remoting { 16 namespace remoting {
17 17
18 // A class that manages threads and running context for the chromoting client 18 // A class that manages threads and running context for the chromoting client
19 // process. 19 // process.
20 class ClientContext { 20 class ClientContext {
21 public: 21 public:
22 // |main_task_runner| is the task runner for the main plugin thread 22 // |main_task_runner| is the task runner for the main plugin thread
23 // that is used for all PPAPI calls, e.g. network and graphics. 23 // that is used for all PPAPI calls, e.g. network and graphics.
24 ClientContext(base::SingleThreadTaskRunner* main_task_runner); 24 explicit ClientContext(base::SingleThreadTaskRunner* main_task_runner);
25 virtual ~ClientContext(); 25 virtual ~ClientContext();
26 26
27 void Start(); 27 void Start();
28 void Stop(); 28 void Stop();
29 29
30 base::SingleThreadTaskRunner* main_task_runner(); 30 base::SingleThreadTaskRunner* main_task_runner();
31 base::SingleThreadTaskRunner* decode_task_runner(); 31 base::SingleThreadTaskRunner* decode_task_runner();
32 base::SingleThreadTaskRunner* audio_decode_task_runner(); 32 base::SingleThreadTaskRunner* audio_decode_task_runner();
33 33
34 private: 34 private:
35 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 35 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
36 36
37 // A thread that handles all video decode operations. 37 // A thread that handles all video decode operations.
38 base::Thread decode_thread_; 38 base::Thread decode_thread_;
39 39
40 // A thread that handles all audio decode operations. 40 // A thread that handles all audio decode operations.
41 base::Thread audio_decode_thread_; 41 base::Thread audio_decode_thread_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(ClientContext); 43 DISALLOW_COPY_AND_ASSIGN(ClientContext);
44 }; 44 };
45 45
46 } // namespace remoting 46 } // namespace remoting
47 47
48 #endif // REMOTING_CLIENT_CLIENT_CONTEXT_H_ 48 #endif // REMOTING_CLIENT_CLIENT_CONTEXT_H_
OLDNEW
« no previous file with comments | « remoting/base/rate_counter.h ('k') | remoting/client/frame_consumer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698