Chromium Code Reviews| Index: remoting/host/host_stats_stub.h |
| diff --git a/remoting/host/host_stats_stub.h b/remoting/host/host_stats_stub.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ccb043dd4bea651a2eb33f1a441afb7a770e5b12 |
| --- /dev/null |
| +++ b/remoting/host/host_stats_stub.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_HOST_HOST_STATS_STUB_H_ |
| +#define REMOTING_HOST_HOST_STATS_STUB_H_ |
| + |
| +#include "remoting/base/process_resource_usage.h" |
| + |
| +namespace remoting { |
| +namespace host { |
| + |
| +// An interface to receive host process statistic data from HostStats. |
| +class HostStatsStub { |
| + public: |
| + HostStatsStub() = default; |
| + ~HostStatsStub() = default; |
|
Sergey Ulanov
2017/03/27 19:43:20
destructor must be virtual in interfaces
Hzj_jie
2017/03/30 01:09:46
Done.
|
| + |
| + virtual void OnHostStats(const ProcessResourceUsage& usage) = 0; |
| +}; |
| + |
| +} // namespace host |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_HOST_HOST_STATS_STUB_H_ |