Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: Source/modules/push_messaging/PushManager.cpp

Issue 219753004: Oilpan: Build fix after r170454 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/push_messaging/PushManager.h" 6 #include "modules/push_messaging/PushManager.h"
7 7
8 #include "bindings/v8/ScriptPromise.h" 8 #include "bindings/v8/ScriptPromise.h"
9 #include "bindings/v8/ScriptPromiseResolver.h" 9 #include "bindings/v8/ScriptPromiseResolver.h"
10 #include "bindings/v8/ScriptValue.h" 10 #include "bindings/v8/ScriptValue.h"
11 #include "core/dom/Document.h" 11 #include "core/dom/Document.h"
12 #include "core/dom/ExecutionContext.h" 12 #include "core/dom/ExecutionContext.h"
13 13
14 namespace WebCore { 14 namespace WebCore {
15 15
16 PushManager::PushManager() 16 PushManager::PushManager()
17 { 17 {
18 ScriptWrappable::init(this); 18 ScriptWrappable::init(this);
19 } 19 }
20 20
21 PushManager::~PushManager() 21 PushManager::~PushManager()
22 { 22 {
23 } 23 }
24 24
25 ScriptPromise PushManager::registerPushMessaging(ExecutionContext* context, cons t String& senderId) 25 ScriptPromise PushManager::registerPushMessaging(ExecutionContext* context, cons t String& senderId)
26 { 26 {
27 RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver:: create(context); 27 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(conte xt);
28 ScriptPromise promise = resolver->promise(); 28 ScriptPromise promise = resolver->promise();
29 // FIXME: Implement registration. 29 // FIXME: Implement registration.
30 resolver->reject(ScriptValue::createNull()); 30 resolver->reject(ScriptValue::createNull());
31 return promise; 31 return promise;
32 } 32 }
33 33
34 } // namespace WebCore 34 } // namespace WebCore
OLDNEW
« Source/modules/push_messaging/PushManager.h ('K') | « Source/modules/push_messaging/PushManager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698