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

Side by Side Diff: remoting/host/process_stats_sender.h

Issue 2860803002: [Chromoting] Allow ProcessStatsSender to receive nullptr ProcessStatsAgent
Patch Set: Created 3 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_PROCESS_STATS_SENDER_H_ 5 #ifndef REMOTING_HOST_PROCESS_STATS_SENDER_H_
6 #define REMOTING_HOST_PROCESS_STATS_SENDER_H_ 6 #define REMOTING_HOST_PROCESS_STATS_SENDER_H_
7 7
8 #include <initializer_list> 8 #include <initializer_list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 // and |agents|. They must outlive the ProcessStatsSender object. 30 // and |agents|. They must outlive the ProcessStatsSender object.
31 ProcessStatsSender(protocol::ProcessStatsStub* host_stats_stub, 31 ProcessStatsSender(protocol::ProcessStatsStub* host_stats_stub,
32 base::TimeDelta interval, 32 base::TimeDelta interval,
33 std::initializer_list<ProcessStatsAgent*> agents); 33 std::initializer_list<ProcessStatsAgent*> agents);
34 34
35 ~ProcessStatsSender(); 35 ~ProcessStatsSender();
36 private: 36 private:
37 void ReportUsage(); 37 void ReportUsage();
38 38
39 protocol::ProcessStatsStub* const host_stats_stub_; 39 protocol::ProcessStatsStub* const host_stats_stub_;
40 std::vector<ProcessStatsAgent*> agents_; 40 const std::vector<ProcessStatsAgent*> agents_;
41 base::RepeatingTimer timer_; 41 base::RepeatingTimer timer_;
42 const base::ThreadChecker thread_checker_; 42 const base::ThreadChecker thread_checker_;
43 }; 43 };
44 44
45 } // namespace remoting 45 } // namespace remoting
46 46
47 #endif // REMOTING_HOST_PROCESS_STATS_SENDER_H_ 47 #endif // REMOTING_HOST_PROCESS_STATS_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/process_stats_sender.cc » ('j') | remoting/host/process_stats_sender.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698