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

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

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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 9
10 #include <memory> 10 #include <memory>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 void OnSubscribeFromDocumentSuccess(int32_t request_id, 67 void OnSubscribeFromDocumentSuccess(int32_t request_id,
68 const GURL& endpoint, 68 const GURL& endpoint,
69 const PushSubscriptionOptions& options, 69 const PushSubscriptionOptions& options,
70 const std::vector<uint8_t>& p256dh, 70 const std::vector<uint8_t>& p256dh,
71 const std::vector<uint8_t>& auth); 71 const std::vector<uint8_t>& auth);
72 72
73 void OnSubscribeFromDocumentError(int32_t request_id, 73 void OnSubscribeFromDocumentError(int32_t request_id,
74 PushRegistrationStatus status); 74 PushRegistrationStatus status);
75 75
76 IDMap<blink::WebPushSubscriptionCallbacks, IDMapOwnPointer> 76 IDMap<std::unique_ptr<blink::WebPushSubscriptionCallbacks>>
77 subscription_callbacks_; 77 subscription_callbacks_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); 79 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher);
80 }; 80 };
81 81
82 } // namespace content 82 } // namespace content
83 83
84 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_ 84 #endif // CONTENT_RENDERER_PUSH_MESSAGING_PUSH_MESSAGING_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698