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

Side by Side Diff: remoting/host/host_window_proxy.h

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « remoting/host/host_status_sender.h ('k') | remoting/host/host_window_proxy.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 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 REMOTING_HOST_HOST_WINDOW_PROXY_H_ 5 #ifndef REMOTING_HOST_HOST_WINDOW_PROXY_H_
6 #define REMOTING_HOST_HOST_WINDOW_PROXY_H_ 6 #define REMOTING_HOST_HOST_WINDOW_PROXY_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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "remoting/host/host_window.h" 12 #include "remoting/host/host_window.h"
13 13
14 namespace base { 14 namespace base {
15 class SingleThreadTaskRunner; 15 class SingleThreadTaskRunner;
16 } 16 }
17 17
18 namespace remoting { 18 namespace remoting {
19 19
20 // Takes an instance of |HostWindow| and runs it on the |ui_task_runner| thread. 20 // Takes an instance of |HostWindow| and runs it on the |ui_task_runner| thread.
21 class HostWindowProxy : public HostWindow { 21 class HostWindowProxy : public HostWindow {
22 public: 22 public:
23 HostWindowProxy( 23 HostWindowProxy(
24 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 24 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
25 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 25 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
26 scoped_ptr<HostWindow> host_window); 26 scoped_ptr<HostWindow> host_window);
27 virtual ~HostWindowProxy(); 27 ~HostWindowProxy() override;
28 28
29 // HostWindow overrides. 29 // HostWindow overrides.
30 virtual void Start( 30 void Start(const base::WeakPtr<ClientSessionControl>& client_session_control)
31 const base::WeakPtr<ClientSessionControl>& client_session_control)
32 override; 31 override;
33 32
34 private: 33 private:
35 // All thread switching logic is implemented in the ref-counted |Core| class. 34 // All thread switching logic is implemented in the ref-counted |Core| class.
36 class Core; 35 class Core;
37 scoped_refptr<Core> core_; 36 scoped_refptr<Core> core_;
38 37
39 DISALLOW_COPY_AND_ASSIGN(HostWindowProxy); 38 DISALLOW_COPY_AND_ASSIGN(HostWindowProxy);
40 }; 39 };
41 40
42 } // namespace remoting 41 } // namespace remoting
43 42
44 #endif // REMOTING_HOST_HOST_WINDOW_PROXY_H_ 43 #endif // REMOTING_HOST_HOST_WINDOW_PROXY_H_
OLDNEW
« no previous file with comments | « remoting/host/host_status_sender.h ('k') | remoting/host/host_window_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698