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

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

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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/core/v8/CallbackPromiseAdapter.h" 8 #include "bindings/core/v8/CallbackPromiseAdapter.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptPromiseResolver.h" 10 #include "bindings/core/v8/ScriptPromiseResolver.h"
11 #include "bindings/core/v8/ScriptState.h" 11 #include "bindings/core/v8/ScriptState.h"
12 #include "core/dom/DOMException.h" 12 #include "core/dom/DOMException.h"
13 #include "core/dom/Document.h" 13 #include "core/dom/Document.h"
14 #include "core/dom/ExceptionCode.h" 14 #include "core/dom/ExceptionCode.h"
15 #include "core/dom/ExecutionContext.h" 15 #include "core/dom/ExecutionContext.h"
16 #include "core/frame/LocalDOMWindow.h" 16 #include "core/frame/LocalDOMWindow.h"
17 #include "modules/push_messaging/PushController.h" 17 #include "modules/push_messaging/PushController.h"
18 #include "modules/push_messaging/PushError.h" 18 #include "modules/push_messaging/PushError.h"
19 #include "modules/push_messaging/PushRegistration.h" 19 #include "modules/push_messaging/PushRegistration.h"
20 #include "modules/serviceworkers/NavigatorServiceWorker.h" 20 #include "modules/serviceworkers/NavigatorServiceWorker.h"
21 #include "modules/serviceworkers/ServiceWorkerContainer.h" 21 #include "modules/serviceworkers/ServiceWorkerContainer.h"
22 #include "public/platform/WebPushClient.h" 22 #include "public/platform/WebPushClient.h"
23 #include "wtf/RefPtr.h" 23 #include "wtf/RefPtr.h"
24 24
25 namespace WebCore { 25 namespace blink {
26 26
27 PushManager::PushManager() 27 PushManager::PushManager()
28 { 28 {
29 ScriptWrappable::init(this); 29 ScriptWrappable::init(this);
30 } 30 }
31 31
32 PushManager::~PushManager() 32 PushManager::~PushManager()
33 { 33 {
34 } 34 }
35 35
(...skipping 11 matching lines...) Expand all
47 47
48 blink::WebPushClient* client = PushController::clientFrom(document->page()); 48 blink::WebPushClient* client = PushController::clientFrom(document->page());
49 ASSERT(client); 49 ASSERT(client);
50 50
51 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scrip tState); 51 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scrip tState);
52 ScriptPromise promise = resolver->promise(); 52 ScriptPromise promise = resolver->promise();
53 client->registerPushMessaging(senderId, new CallbackPromiseAdapter<PushRegis tration, PushError>(resolver), serviceWorkerProvider); 53 client->registerPushMessaging(senderId, new CallbackPromiseAdapter<PushRegis tration, PushError>(resolver), serviceWorkerProvider);
54 return promise; 54 return promise;
55 } 55 }
56 56
57 } // namespace WebCore 57 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/push_messaging/PushManager.h ('k') | Source/modules/push_messaging/PushRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698