diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/context_lifecycle_notifier.h')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/context_lifecycle_notifier.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/platform/context_lifecycle_notifier.h b/chromium/third_party/blink/renderer/platform/context_lifecycle_notifier.h new file mode 100644 index 00000000000..6b16cfe76bb --- /dev/null +++ b/chromium/third_party/blink/renderer/platform/context_lifecycle_notifier.h @@ -0,0 +1,23 @@ +// Copyright 2020 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_CONTEXT_LIFECYCLE_NOTIFIER_H_ +#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_CONTEXT_LIFECYCLE_NOTIFIER_H_ + +#include "third_party/blink/renderer/platform/heap/handle.h" + +namespace blink { + +class ContextLifecycleObserver; + +// Notifier interface for ContextLifecycleObserver. +class PLATFORM_EXPORT ContextLifecycleNotifier : public GarbageCollectedMixin { + public: + virtual void AddContextLifecycleObserver(ContextLifecycleObserver*) = 0; + virtual void RemoveContextLifecycleObserver(ContextLifecycleObserver*) = 0; +}; + +} // namespace blink + +#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_CONTEXT_LIFECYCLE_NOTIFIER_H_ |