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

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

Issue 2712693002: Implement some follow-ups after mojofiction of Push-messaging. (Closed)
Patch Set: code rebase Created 3 years, 9 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_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_
6 #define CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_ 6 #define CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks, 52 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks,
53 const GURL& manifest_url, 53 const GURL& manifest_url,
54 const Manifest& manifest, 54 const Manifest& manifest,
55 const ManifestDebugInfo&); 55 const ManifestDebugInfo&);
56 56
57 void DoSubscribe( 57 void DoSubscribe(
58 blink::WebServiceWorkerRegistration* service_worker_registration, 58 blink::WebServiceWorkerRegistration* service_worker_registration,
59 const PushSubscriptionOptions& options, 59 const PushSubscriptionOptions& options,
60 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks); 60 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks);
61 61
62 void SubscribeCallback( 62 void DidSubscribe(
63 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks, 63 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks,
64 content::PushRegistrationStatus status, 64 content::PushRegistrationStatus status,
65 const base::Optional<GURL>& endpoint, 65 const base::Optional<GURL>& endpoint,
66 const base::Optional<content::PushSubscriptionOptions>& options, 66 const base::Optional<content::PushSubscriptionOptions>& options,
67 const base::Optional<std::vector<uint8_t>>& p256dh, 67 const base::Optional<std::vector<uint8_t>>& p256dh,
68 const base::Optional<std::vector<uint8_t>>& auth); 68 const base::Optional<std::vector<uint8_t>>& auth);
69 69
70 mojom::PushMessagingPtr push_messaging_manager_; 70 mojom::PushMessagingPtr push_messaging_manager_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(PushMessagingClient); 72 DISALLOW_COPY_AND_ASSIGN(PushMessagingClient);
73 }; 73 };
74 74
75 } // namespace content 75 } // namespace content
76 76
77 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_ 77 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_CLIENT_H_
OLDNEW
« no previous file with comments | « content/child/push_messaging/push_provider.cc ('k') | content/renderer/push_messaging/push_messaging_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698