OLD | NEW |
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_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ |
6 #define CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 explicit PushMessagingDispatcher(RenderViewImpl* render_view); | 30 explicit PushMessagingDispatcher(RenderViewImpl* render_view); |
31 virtual ~PushMessagingDispatcher(); | 31 virtual ~PushMessagingDispatcher(); |
32 | 32 |
33 private: | 33 private: |
34 // RenderView::Observer implementation. | 34 // RenderView::Observer implementation. |
35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
36 | 36 |
37 // WebPushClient implementation. | 37 // WebPushClient implementation. |
38 virtual void registerPushMessaging( | 38 virtual void registerPushMessaging( |
39 const blink::WebString& sender_id, | 39 const blink::WebString& sender_id, |
40 blink::WebPushRegistrationCallbacks* callbacks) OVERRIDE; | 40 blink::WebPushRegistrationCallbacks* callbacks, |
| 41 const blink::WebURL& url, |
| 42 int service_worker_provider_id); |
41 | 43 |
42 void OnRegisterSuccess(int32 callbacks_id, | 44 void OnRegisterSuccess(int32 callbacks_id, |
43 const GURL& endpoint, | 45 const GURL& endpoint, |
44 const std::string& registration_id); | 46 const std::string& registration_id); |
45 | 47 |
46 void OnRegisterError(int32 callbacks_id); | 48 void OnRegisterError(int32 callbacks_id); |
47 | 49 |
48 IDMap<blink::WebPushRegistrationCallbacks, IDMapOwnPointer> | 50 IDMap<blink::WebPushRegistrationCallbacks, IDMapOwnPointer> |
49 registration_callbacks_; | 51 registration_callbacks_; |
50 | 52 |
51 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); | 53 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); |
52 }; | 54 }; |
53 | 55 |
54 } // namespace content | 56 } // namespace content |
55 | 57 |
56 #endif // CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ | 58 #endif // CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ |
OLD | NEW |