OLD | NEW |
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/macros.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.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 remoting { | 16 namespace remoting { |
16 namespace protocol { | 17 namespace protocol { |
17 | 18 |
18 class ClipboardThreadProxy : public ClipboardStub { | 19 class ClipboardThreadProxy : public ClipboardStub { |
19 public: | 20 public: |
20 ~ClipboardThreadProxy() override; | 21 ~ClipboardThreadProxy() override; |
(...skipping 17 matching lines...) Expand all Loading... |
38 base::WeakPtr<ClipboardStub> clipboard_stub_; | 39 base::WeakPtr<ClipboardStub> clipboard_stub_; |
39 scoped_refptr<base::TaskRunner> clipboard_stub_task_runner_; | 40 scoped_refptr<base::TaskRunner> clipboard_stub_task_runner_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(ClipboardThreadProxy); | 42 DISALLOW_COPY_AND_ASSIGN(ClipboardThreadProxy); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace protocol | 45 } // namespace protocol |
45 } // namespace remoting | 46 } // namespace remoting |
46 | 47 |
47 #endif // REMOTING_PROTOCOL_CLIPBOARD_THREAD_PROXY_H_ | 48 #endif // REMOTING_PROTOCOL_CLIPBOARD_THREAD_PROXY_H_ |
OLD | NEW |