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

Side by Side Diff: chrome/browser/push_messaging/push_messaging_notification_manager.h

Issue 2300093002: Make //content responsible for generating notification Ids (Closed)
Patch Set: comments Created 4 years, 3 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698