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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 void DoRegister(const std::string& sender_id, | 46 void DoRegister(const std::string& sender_id, |
47 blink::WebPushRegistrationCallbacks* callbacks, | 47 blink::WebPushRegistrationCallbacks* callbacks, |
48 blink::WebServiceWorkerProvider* service_worker_provider, | 48 blink::WebServiceWorkerProvider* service_worker_provider, |
49 const Manifest& manifest); | 49 const Manifest& manifest); |
50 | 50 |
51 void OnRegisterSuccess(int32 callbacks_id, | 51 void OnRegisterSuccess(int32 callbacks_id, |
52 const GURL& endpoint, | 52 const GURL& endpoint, |
53 const std::string& registration_id); | 53 const std::string& registration_id); |
54 | 54 |
55 void OnRegisterError(int32 callbacks_id, PushMessagingStatus status); | 55 void OnRegisterError(int32 callbacks_id, PushRegistrationStatus status); |
56 | 56 |
57 IDMap<blink::WebPushRegistrationCallbacks, IDMapOwnPointer> | 57 IDMap<blink::WebPushRegistrationCallbacks, IDMapOwnPointer> |
58 registration_callbacks_; | 58 registration_callbacks_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); | 60 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace content | 63 } // namespace content |
64 | 64 |
65 #endif // CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ | 65 #endif // CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ |
OLD | NEW |