Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/NativeFileWatcherNotSupported.h
Line
Count
Source (jump to first uncovered line)
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3
 * You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
#ifndef mozilla_nativefilewatcher_h__
6
#define mozilla_nativefilewatcher_h__
7
8
#include "nsINativeFileWatcher.h"
9
10
namespace mozilla {
11
12
class NativeFileWatcherService final : public nsINativeFileWatcherService
13
{
14
public:
15
  NS_DECL_ISUPPORTS
16
17
  NativeFileWatcherService()
18
0
  {
19
0
  };
20
21
  nsresult Init()
22
0
  {
23
0
    return NS_OK;
24
0
  };
25
26
  NS_IMETHOD AddPath(const nsAString& aPathToWatch,
27
                     nsINativeFileWatcherCallback* aOnChange,
28
                     nsINativeFileWatcherErrorCallback* aOnError,
29
                     nsINativeFileWatcherSuccessCallback* aOnSuccess) override
30
0
  {
31
0
    return NS_ERROR_NOT_IMPLEMENTED;
32
0
  };
33
34
  NS_IMETHOD RemovePath(const nsAString& aPathToRemove,
35
                        nsINativeFileWatcherCallback* aOnChange,
36
                        nsINativeFileWatcherErrorCallback* aOnError,
37
                        nsINativeFileWatcherSuccessCallback* aOnSuccess) override
38
0
  {
39
0
    return NS_ERROR_NOT_IMPLEMENTED;
40
0
  };
41
42
private:
43
0
  ~NativeFileWatcherService() { };
44
  NativeFileWatcherService(const NativeFileWatcherService& other) = delete;
45
  void operator=(const NativeFileWatcherService& other) = delete;
46
};
47
48
NS_IMPL_ISUPPORTS(NativeFileWatcherService, nsINativeFileWatcherService);
49
50
} // namespace mozilla
51
52
#endif // mozilla_nativefilewatcher_h__