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

Side by Side Diff: third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "modules/push_messaging/PushSubscription.h" 5 #include "modules/push_messaging/PushSubscription.h"
6 6
7 #include <memory>
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" 8 #include "bindings/core/v8/CallbackPromiseAdapter.h"
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "bindings/core/v8/V8ObjectBuilder.h" 10 #include "bindings/core/v8/V8ObjectBuilder.h"
10 #include "modules/push_messaging/PushError.h" 11 #include "modules/push_messaging/PushError.h"
11 #include "modules/push_messaging/PushSubscriptionOptions.h" 12 #include "modules/push_messaging/PushSubscriptionOptions.h"
12 #include "modules/serviceworkers/ServiceWorkerRegistration.h" 13 #include "modules/serviceworkers/ServiceWorkerRegistration.h"
13 #include "public/platform/Platform.h" 14 #include "public/platform/Platform.h"
14 #include "public/platform/modules/push_messaging/WebPushProvider.h" 15 #include "public/platform/modules/push_messaging/WebPushProvider.h"
15 #include "public/platform/modules/push_messaging/WebPushSubscription.h" 16 #include "public/platform/modules/push_messaging/WebPushSubscription.h"
16 #include "wtf/Assertions.h" 17 #include "wtf/Assertions.h"
17 #include "wtf/text/Base64.h" 18 #include "wtf/text/Base64.h"
18 #include <memory>
19 19
20 namespace blink { 20 namespace blink {
21 21
22 PushSubscription* PushSubscription::take( 22 PushSubscription* PushSubscription::take(
23 ScriptPromiseResolver*, 23 ScriptPromiseResolver*,
24 std::unique_ptr<WebPushSubscription> pushSubscription, 24 std::unique_ptr<WebPushSubscription> pushSubscription,
25 ServiceWorkerRegistration* serviceWorkerRegistration) { 25 ServiceWorkerRegistration* serviceWorkerRegistration) {
26 if (!pushSubscription) 26 if (!pushSubscription)
27 return nullptr; 27 return nullptr;
28 return new PushSubscription(*pushSubscription, serviceWorkerRegistration); 28 return new PushSubscription(*pushSubscription, serviceWorkerRegistration);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 88
89 DEFINE_TRACE(PushSubscription) { 89 DEFINE_TRACE(PushSubscription) {
90 visitor->trace(m_options); 90 visitor->trace(m_options);
91 visitor->trace(m_p256dh); 91 visitor->trace(m_p256dh);
92 visitor->trace(m_auth); 92 visitor->trace(m_auth);
93 visitor->trace(m_serviceWorkerRegistration); 93 visitor->trace(m_serviceWorkerRegistration);
94 } 94 }
95 95
96 } // namespace blink 96 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698