Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/layers/MetricsSharingController.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef mozilla_layers_MetricsSharingController_h
8
#define mozilla_layers_MetricsSharingController_h
9
10
#include "FrameMetrics.h" // for FrameMetrics
11
#include "mozilla/ipc/CrossProcessMutex.h" // for CrossProcessMutexHandle
12
#include "mozilla/ipc/SharedMemoryBasic.h" // for SharedMemoryBasic
13
#include "nsISupportsImpl.h" // for NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING
14
15
namespace mozilla {
16
namespace layers {
17
18
class MetricsSharingController
19
{
20
public:
21
  NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING
22
23
  virtual base::ProcessId RemotePid() = 0;
24
  virtual bool StartSharingMetrics(mozilla::ipc::SharedMemoryBasic::Handle aHandle,
25
                                   CrossProcessMutexHandle aMutexHandle,
26
                                   LayersId aLayersId,
27
                                   uint32_t aApzcId) = 0;
28
  virtual bool StopSharingMetrics(FrameMetrics::ViewID aScrollId,
29
                                  uint32_t aApzcId) = 0;
30
31
protected:
32
0
  virtual ~MetricsSharingController() {}
33
};
34
35
} // namespace layers
36
} // namespace mozilla
37
38
#endif // mozilla_layers_MetricsSharingController_h