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

Side by Side Diff: content/renderer/push_messaging/push_messaging_dispatcher.h

Issue 2133673002: Push API: Implement and ship PushSubscription.options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 #ifndef CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_
6 #define CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ 6 #define CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const Manifest& manifest, 56 const Manifest& manifest,
57 const ManifestDebugInfo&); 57 const ManifestDebugInfo&);
58 58
59 void DoSubscribe( 59 void DoSubscribe(
60 blink::WebServiceWorkerRegistration* service_worker_registration, 60 blink::WebServiceWorkerRegistration* service_worker_registration,
61 const PushSubscriptionOptions& options, 61 const PushSubscriptionOptions& options,
62 blink::WebPushSubscriptionCallbacks* callbacks); 62 blink::WebPushSubscriptionCallbacks* callbacks);
63 63
64 void OnSubscribeFromDocumentSuccess(int32_t request_id, 64 void OnSubscribeFromDocumentSuccess(int32_t request_id,
65 const GURL& endpoint, 65 const GURL& endpoint,
66 const PushSubscriptionOptions& options,
66 const std::vector<uint8_t>& p256dh, 67 const std::vector<uint8_t>& p256dh,
67 const std::vector<uint8_t>& auth); 68 const std::vector<uint8_t>& auth);
68 69
69 void OnSubscribeFromDocumentError(int32_t request_id, 70 void OnSubscribeFromDocumentError(int32_t request_id,
70 PushRegistrationStatus status); 71 PushRegistrationStatus status);
71 72
72 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer> 73 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer>
73 subscription_callbacks_; 74 subscription_callbacks_;
74 75
75 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); 76 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher);
76 }; 77 };
77 78
78 } // namespace content 79 } // namespace content
79 80
80 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ 81 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698