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

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

Issue 1210283005: Introduce the PushSubscription.curve25519dh attribute (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android fix 2 Created 5 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 11
11 #include "base/id_map.h" 12 #include "base/id_map.h"
12 #include "content/public/common/push_messaging_status.h" 13 #include "content/public/common/push_messaging_status.h"
13 #include "content/public/renderer/render_frame_observer.h" 14 #include "content/public/renderer/render_frame_observer.h"
14 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushClien t.h" 15 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushClien t.h"
15 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi ssionStatus.h" 16 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi ssionStatus.h"
16 17
17 class GURL; 18 class GURL;
18 19
19 namespace blink { 20 namespace blink {
(...skipping 24 matching lines...) Expand all
44 const blink::WebPushSubscriptionOptions& options, 45 const blink::WebPushSubscriptionOptions& options,
45 blink::WebPushSubscriptionCallbacks* callbacks); 46 blink::WebPushSubscriptionCallbacks* callbacks);
46 47
47 void DoSubscribe( 48 void DoSubscribe(
48 blink::WebServiceWorkerRegistration* service_worker_registration, 49 blink::WebServiceWorkerRegistration* service_worker_registration,
49 const blink::WebPushSubscriptionOptions& options, 50 const blink::WebPushSubscriptionOptions& options,
50 blink::WebPushSubscriptionCallbacks* callbacks, 51 blink::WebPushSubscriptionCallbacks* callbacks,
51 const Manifest& manifest); 52 const Manifest& manifest);
52 53
53 void OnSubscribeFromDocumentSuccess(int32_t request_id, 54 void OnSubscribeFromDocumentSuccess(int32_t request_id,
54 const GURL& endpoint); 55 const GURL& endpoint,
56 const std::vector<uint8_t>& curve25519dh);
55 57
56 void OnSubscribeFromDocumentError(int32_t request_id, 58 void OnSubscribeFromDocumentError(int32_t request_id,
57 PushRegistrationStatus status); 59 PushRegistrationStatus status);
58 60
59 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer> 61 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer>
60 subscription_callbacks_; 62 subscription_callbacks_;
61 63
62 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); 64 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher);
63 }; 65 };
64 66
65 } // namespace content 67 } // namespace content
66 68
67 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ 69 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/public/common/push_messaging_status.cc ('k') | content/renderer/push_messaging/push_messaging_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698