| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_NOTIFICATION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_NOTIFICATION_MANAGER_H_ |
| 6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_NOTIFICATION_MANAGER_H_ | 6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_NOTIFICATION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 int64_t service_worker_registration_id, | 77 int64_t service_worker_registration_id, |
| 78 const base::Closure& message_handled_closure, | 78 const base::Closure& message_handled_closure, |
| 79 bool silent_push_allowed); | 79 bool silent_push_allowed); |
| 80 | 80 |
| 81 static void DidWriteNotificationDataIOProxy( | 81 static void DidWriteNotificationDataIOProxy( |
| 82 const base::WeakPtr<PushMessagingNotificationManager>& ui_weak_ptr, | 82 const base::WeakPtr<PushMessagingNotificationManager>& ui_weak_ptr, |
| 83 const GURL& origin, | 83 const GURL& origin, |
| 84 const content::PlatformNotificationData& notification_data, | 84 const content::PlatformNotificationData& notification_data, |
| 85 const base::Closure& message_handled_closure, | 85 const base::Closure& message_handled_closure, |
| 86 bool success, | 86 bool success, |
| 87 int64_t persistent_notification_id); | 87 const std::string& notification_id); |
| 88 | 88 |
| 89 void DidWriteNotificationData( | 89 void DidWriteNotificationData( |
| 90 const GURL& origin, | 90 const GURL& origin, |
| 91 const content::PlatformNotificationData& notification_data, | 91 const content::PlatformNotificationData& notification_data, |
| 92 const base::Closure& message_handled_closure, | 92 const base::Closure& message_handled_closure, |
| 93 bool success, | 93 bool success, |
| 94 int64_t persistent_notification_id); | 94 const std::string& notification_id); |
| 95 | 95 |
| 96 // Weak. This manager is owned by a keyed service on this profile. | 96 // Weak. This manager is owned by a keyed service on this profile. |
| 97 Profile* profile_; | 97 Profile* profile_; |
| 98 | 98 |
| 99 base::WeakPtrFactory<PushMessagingNotificationManager> weak_factory_; | 99 base::WeakPtrFactory<PushMessagingNotificationManager> weak_factory_; |
| 100 | 100 |
| 101 DISALLOW_COPY_AND_ASSIGN(PushMessagingNotificationManager); | 101 DISALLOW_COPY_AND_ASSIGN(PushMessagingNotificationManager); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_NOTIFICATION_MANAGER_H_ | 104 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |