| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; | 36 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; |
| 37 | 37 |
| 38 // Overrides the clipboard polling interval for unit test. | 38 // Overrides the clipboard polling interval for unit test. |
| 39 void SetPollingIntervalForTesting(base::TimeDelta polling_interval); | 39 void SetPollingIntervalForTesting(base::TimeDelta polling_interval); |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 void CheckClipboardForChanges(); | 42 void CheckClipboardForChanges(); |
| 43 | 43 |
| 44 base::ThreadChecker thread_checker_; | 44 base::ThreadChecker thread_checker_; |
| 45 scoped_ptr<protocol::ClipboardStub> client_clipboard_; | 45 scoped_ptr<protocol::ClipboardStub> client_clipboard_; |
| 46 base::RepeatingTimer<ClipboardAura> clipboard_polling_timer_; | 46 base::RepeatingTimer clipboard_polling_timer_; |
| 47 uint64 current_change_count_; | 47 uint64 current_change_count_; |
| 48 base::TimeDelta polling_interval_; | 48 base::TimeDelta polling_interval_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(ClipboardAura); | 50 DISALLOW_COPY_AND_ASSIGN(ClipboardAura); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace remoting | 53 } // namespace remoting |
| 54 | 54 |
| 55 #endif // REMOTING_HOST_CLIPBOARD_AURA_H_ | 55 #endif // REMOTING_HOST_CLIPBOARD_AURA_H_ |
| OLD | NEW |