| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLIPBOARD_AURA_H_ | 5 #ifndef REMOTING_HOST_CLIPBOARD_AURA_H_ |
| 6 #define REMOTING_HOST_CLIPBOARD_AURA_H_ | 6 #define REMOTING_HOST_CLIPBOARD_AURA_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
| 10 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
| 11 #include "remoting/host/clipboard.h" | 14 #include "remoting/host/clipboard.h" |
| 12 | 15 |
| 13 namespace remoting { | 16 namespace remoting { |
| 14 | 17 |
| 15 namespace protocol { | 18 namespace protocol { |
| 16 class ClipboardStub; | 19 class ClipboardStub; |
| 17 } // namespace protocol | 20 } // namespace protocol |
| (...skipping 19 matching lines...) Expand all Loading... |
| 37 | 40 |
| 38 // Overrides the clipboard polling interval for unit test. | 41 // Overrides the clipboard polling interval for unit test. |
| 39 void SetPollingIntervalForTesting(base::TimeDelta polling_interval); | 42 void SetPollingIntervalForTesting(base::TimeDelta polling_interval); |
| 40 | 43 |
| 41 private: | 44 private: |
| 42 void CheckClipboardForChanges(); | 45 void CheckClipboardForChanges(); |
| 43 | 46 |
| 44 base::ThreadChecker thread_checker_; | 47 base::ThreadChecker thread_checker_; |
| 45 scoped_ptr<protocol::ClipboardStub> client_clipboard_; | 48 scoped_ptr<protocol::ClipboardStub> client_clipboard_; |
| 46 base::RepeatingTimer clipboard_polling_timer_; | 49 base::RepeatingTimer clipboard_polling_timer_; |
| 47 uint64 current_change_count_; | 50 uint64_t current_change_count_; |
| 48 base::TimeDelta polling_interval_; | 51 base::TimeDelta polling_interval_; |
| 49 | 52 |
| 50 DISALLOW_COPY_AND_ASSIGN(ClipboardAura); | 53 DISALLOW_COPY_AND_ASSIGN(ClipboardAura); |
| 51 }; | 54 }; |
| 52 | 55 |
| 53 } // namespace remoting | 56 } // namespace remoting |
| 54 | 57 |
| 55 #endif // REMOTING_HOST_CLIPBOARD_AURA_H_ | 58 #endif // REMOTING_HOST_CLIPBOARD_AURA_H_ |
| OLD | NEW |