/work/obj-fuzz/dist/include/mozilla/places/INativePlacesEventCallback.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
3 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | | |
6 | | #ifndef mozilla_image_INativePlacesEventCallback_h |
7 | | #define mozilla_image_INativePlacesEventCallback_h |
8 | | |
9 | | #include "mozilla/dom/PlacesObserversBinding.h" |
10 | | #include "mozilla/WeakPtr.h" |
11 | | #include "nsISupports.h" |
12 | | #include "nsTArray.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace places { |
16 | | |
17 | | class INativePlacesEventCallback : public SupportsWeakPtr<INativePlacesEventCallback> |
18 | | { |
19 | | public: |
20 | | typedef dom::Sequence<OwningNonNull<dom::PlacesEvent>> PlacesEventSequence; |
21 | | |
22 | | MOZ_DECLARE_WEAKREFERENCE_TYPENAME(INativePlacesEventCallback) |
23 | | NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING |
24 | | |
25 | | virtual void HandlePlacesEvent(const PlacesEventSequence& aEvents) = 0; |
26 | | |
27 | | protected: |
28 | 0 | virtual ~INativePlacesEventCallback() { } |
29 | | }; |
30 | | |
31 | | } // namespace places |
32 | | } // namespace mozilla |
33 | | |
34 | | #endif // mozilla_image_INativePlacesEventCallback_h |