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

Side by Side Diff: remoting/protocol/clipboard_thread_proxy.h

Issue 1113493005: [remoting] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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 // ClipboardThreadProxy is used to allow a Clipboard on the UI thread to invoke 5 // ClipboardThreadProxy is used to allow a Clipboard on the UI thread to invoke
6 // a ClipboardStub on the network thread. 6 // a ClipboardStub on the network thread.
7 7
8 #ifndef REMOTING_PROTOCOL_CLIPBOARD_THREAD_PROXY_H_ 8 #ifndef REMOTING_PROTOCOL_CLIPBOARD_THREAD_PROXY_H_
9 #define REMOTING_PROTOCOL_CLIPBOARD_THREAD_PROXY_H_ 9 #define REMOTING_PROTOCOL_CLIPBOARD_THREAD_PROXY_H_
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/single_thread_task_runner.h"
12 #include "base/task_runner.h" 13 #include "base/task_runner.h"
13 #include "remoting/protocol/clipboard_stub.h" 14 #include "remoting/protocol/clipboard_stub.h"
14 15
15 namespace base { 16 namespace base {
16 class MessageLoopProxy; 17 class SingleThreadTaskRunner;
Sergey Ulanov 2015/04/28 17:03:23 Don't need this - it's not used in this file.
anujsharma 2015/05/04 12:38:21 Done.
17 } // namespace base 18 } // namespace base
18 19
19 namespace remoting { 20 namespace remoting {
20 namespace protocol { 21 namespace protocol {
21 22
22 class ClipboardThreadProxy : public ClipboardStub { 23 class ClipboardThreadProxy : public ClipboardStub {
23 public: 24 public:
24 ~ClipboardThreadProxy() override; 25 ~ClipboardThreadProxy() override;
25 26
26 // Constructs a proxy for |clipboard_stub| which will trampoline invocations 27 // Constructs a proxy for |clipboard_stub| which will trampoline invocations
(...skipping 15 matching lines...) Expand all
42 base::WeakPtr<ClipboardStub> clipboard_stub_; 43 base::WeakPtr<ClipboardStub> clipboard_stub_;
43 scoped_refptr<base::TaskRunner> clipboard_stub_task_runner_; 44 scoped_refptr<base::TaskRunner> clipboard_stub_task_runner_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(ClipboardThreadProxy); 46 DISALLOW_COPY_AND_ASSIGN(ClipboardThreadProxy);
46 }; 47 };
47 48
48 } // namespace protocol 49 } // namespace protocol
49 } // namespace remoting 50 } // namespace remoting
50 51
51 #endif // REMOTING_PROTOCOL_CLIPBOARD_THREAD_PROXY_H_ 52 #endif // REMOTING_PROTOCOL_CLIPBOARD_THREAD_PROXY_H_
OLDNEW
« remoting/host/policy_watcher_unittest.cc ('K') | « remoting/host/policy_watcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698