OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 "config.h" |
| 6 #include "modules/push_messaging/PushManager.h" |
| 7 |
| 8 #include "bindings/v8/ScriptPromise.h" |
| 9 #include "bindings/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/v8/ScriptValue.h" |
| 11 #include "core/dom/Document.h" |
| 12 #include "core/dom/ExecutionContext.h" |
| 13 |
| 14 namespace WebCore { |
| 15 |
| 16 PushManager::PushManager() |
| 17 { |
| 18 ScriptWrappable::init(this); |
| 19 } |
| 20 |
| 21 PushManager::~PushManager() |
| 22 { |
| 23 } |
| 24 |
| 25 ScriptPromise PushManager::registerPushMessaging(ExecutionContext* context, cons
t String& senderId) |
| 26 { |
| 27 RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::
create(context); |
| 28 ScriptPromise promise = resolver->promise(); |
| 29 // FIXME: Implement registration. |
| 30 resolver->reject(ScriptValue::createNull()); |
| 31 return promise; |
| 32 } |
| 33 |
| 34 } // namespace WebCore |
OLD | NEW |