Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/FileSystemRequestParent.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_dom_FileSystemRequestParent_h
8
#define mozilla_dom_FileSystemRequestParent_h
9
10
#include "mozilla/dom/PFileSystemRequestParent.h"
11
#include "mozilla/dom/FileSystemBase.h"
12
13
namespace mozilla {
14
namespace dom {
15
16
class FileSystemParams;
17
class FileSystemTaskParentBase;
18
19
class FileSystemRequestParent final : public PFileSystemRequestParent
20
{
21
  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FileSystemRequestParent)
22
23
public:
24
  FileSystemRequestParent();
25
26
  bool
27
  Initialize(const FileSystemParams& aParams);
28
29
  void
30
  Start();
31
32
  bool Destroyed() const
33
0
  {
34
0
    return mDestroyed;
35
0
  }
36
37
  virtual void
38
  ActorDestroy(ActorDestroyReason why) override;
39
40
private:
41
  ~FileSystemRequestParent();
42
43
  RefPtr<FileSystemBase> mFileSystem;
44
  RefPtr<FileSystemTaskParentBase> mTask;
45
46
  bool mDestroyed;
47
};
48
49
} // namespace dom
50
} // namespace mozilla
51
52
#endif // mozilla_dom_FileSystemRequestParent_h