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

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

Issue 2058523003: Make BackgroundBudgetService calls asynchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More test code cleanup Created 4 years, 6 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool success, 86 bool success,
87 int64_t persistent_notification_id); 87 int64_t persistent_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 int64_t persistent_notification_id);
95 95
96 void DidGetBudget(const GURL& origin,
97 int64_t service_worker_registration_id,
98 const base::Closure& message_handled_closure,
99 bool notification_needed,
100 bool notification_shown,
101 double budget);
102
96 // Weak. This manager is owned by a keyed service on this profile. 103 // Weak. This manager is owned by a keyed service on this profile.
97 Profile* profile_; 104 Profile* profile_;
98 105
99 base::WeakPtrFactory<PushMessagingNotificationManager> weak_factory_; 106 base::WeakPtrFactory<PushMessagingNotificationManager> weak_factory_;
100 107
101 DISALLOW_COPY_AND_ASSIGN(PushMessagingNotificationManager); 108 DISALLOW_COPY_AND_ASSIGN(PushMessagingNotificationManager);
102 }; 109 };
103 110
104 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_NOTIFICATION_MANAGER_H_ 111 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698