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

Side by Side Diff: remoting/host/chromeos/clipboard_aura.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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/cast_video_capturer_adapter.cc ('k') | remoting/host/client_session.h » ('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 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
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_
OLDNEW
« no previous file with comments | « remoting/host/cast_video_capturer_adapter.cc ('k') | remoting/host/client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698