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

Side by Side Diff: content/child/push_messaging/push_provider.h

Issue 2715903002: Re-design Unsubscribe and getPermissionStatus mojo interfaces. (Closed)
Patch Set: Re-design Unsubscribe and getPermissionStatus mojo interfaces. 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_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_ 5 #ifndef CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_
6 #define CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_ 6 #define CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void DidSubscribe( 70 void DidSubscribe(
71 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks, 71 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks,
72 content::PushRegistrationStatus status, 72 content::PushRegistrationStatus status,
73 const base::Optional<GURL>& endpoint, 73 const base::Optional<GURL>& endpoint,
74 const base::Optional<content::PushSubscriptionOptions>& options, 74 const base::Optional<content::PushSubscriptionOptions>& options,
75 const base::Optional<std::vector<uint8_t>>& p256dh, 75 const base::Optional<std::vector<uint8_t>>& p256dh,
76 const base::Optional<std::vector<uint8_t>>& auth); 76 const base::Optional<std::vector<uint8_t>>& auth);
77 77
78 void DidUnsubscribe( 78 void DidUnsubscribe(
79 std::unique_ptr<blink::WebPushUnsubscribeCallbacks> callbacks, 79 std::unique_ptr<blink::WebPushUnsubscribeCallbacks> callbacks,
80 bool is_success, 80 blink::WebPushError::ErrorType error_type,
81 bool did_unsubscribe, 81 bool did_unsubscribe,
82 blink::WebPushError::ErrorType error_type,
83 const base::Optional<std::string>& error_message); 82 const base::Optional<std::string>& error_message);
84 83
85 void DidGetSubscription( 84 void DidGetSubscription(
86 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks, 85 std::unique_ptr<blink::WebPushSubscriptionCallbacks> callbacks,
87 content::PushGetRegistrationStatus status, 86 content::PushGetRegistrationStatus status,
88 const base::Optional<GURL>& endpoint, 87 const base::Optional<GURL>& endpoint,
89 const base::Optional<content::PushSubscriptionOptions>& options, 88 const base::Optional<content::PushSubscriptionOptions>& options,
90 const base::Optional<std::vector<uint8_t>>& p256dh, 89 const base::Optional<std::vector<uint8_t>>& p256dh,
91 const base::Optional<std::vector<uint8_t>>& auth); 90 const base::Optional<std::vector<uint8_t>>& auth);
92 91
93 void DidGetPermissionStatus( 92 void DidGetPermissionStatus(
94 std::unique_ptr<blink::WebPushPermissionStatusCallbacks> callbacks, 93 std::unique_ptr<blink::WebPushPermissionStatusCallbacks> callbacks,
95 bool is_success, 94 blink::WebPushError::ErrorType error_type,
96 blink::WebPushPermissionStatus status, 95 blink::WebPushPermissionStatus status);
97 blink::WebPushError::ErrorType error);
98 96
99 mojom::PushMessagingPtr push_messaging_manager_; 97 mojom::PushMessagingPtr push_messaging_manager_;
100 98
101 DISALLOW_COPY_AND_ASSIGN(PushProvider); 99 DISALLOW_COPY_AND_ASSIGN(PushProvider);
102 }; 100 };
103 101
104 } // namespace content 102 } // namespace content
105 103
106 #endif // CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_ 104 #endif // CONTENT_CHILD_PUSH_MESSAGING_PUSH_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/push_messaging/push_messaging_manager.cc ('k') | content/child/push_messaging/push_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698