OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "modules/background_fetch/BackgroundFetchManager.h" |
| 6 |
| 7 #include "bindings/core/v8/ScriptState.h" |
| 8 #include "core/dom/DOMException.h" |
| 9 #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 BackgroundFetchManager::BackgroundFetchManager( |
| 14 ServiceWorkerRegistration* registration) |
| 15 : m_registration(registration) { |
| 16 DCHECK(registration); |
| 17 } |
| 18 |
| 19 ScriptPromise BackgroundFetchManager::getTags(ScriptState* scriptState) { |
| 20 return ScriptPromise::rejectWithDOMException( |
| 21 scriptState, |
| 22 DOMException::create(NotSupportedError, "Not implemented yet.")); |
| 23 } |
| 24 |
| 25 DEFINE_TRACE(BackgroundFetchManager) { |
| 26 visitor->trace(m_registration); |
| 27 } |
| 28 |
| 29 } // namespace blink |
OLD | NEW |