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

Side by Side Diff: content/browser/notifications/notification_message_filter.h

Issue 2183783002: Revert of Stop passing const-reference of SWRegistration in all GetRegistrationsCallbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 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_BROWSER_NOTIFICATIONS_NOTIFICATION_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_MESSAGE_FILTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Callback to be invoked by the service worker context when the service 91 // Callback to be invoked by the service worker context when the service
92 // worker registration was retrieved. Will present the notification to the 92 // worker registration was retrieved. Will present the notification to the
93 // user when successful. 93 // user when successful.
94 void DidFindServiceWorkerRegistration( 94 void DidFindServiceWorkerRegistration(
95 int request_id, 95 int request_id,
96 const GURL& origin, 96 const GURL& origin,
97 const PlatformNotificationData& notification_data, 97 const PlatformNotificationData& notification_data,
98 const NotificationResources& notification_resources, 98 const NotificationResources& notification_resources,
99 int64_t persistent_notification_id, 99 int64_t persistent_notification_id,
100 content::ServiceWorkerStatusCode service_worker_status, 100 content::ServiceWorkerStatusCode service_worker_status,
101 scoped_refptr<ServiceWorkerRegistration> registration); 101 const scoped_refptr<content::ServiceWorkerRegistration>& registration);
102 102
103 // Callback to be invoked when all notifications belonging to a Service Worker 103 // Callback to be invoked when all notifications belonging to a Service Worker
104 // registration have been read from the database. The |success| argument 104 // registration have been read from the database. The |success| argument
105 // indicates whether the data could be read successfully, whereas the actual 105 // indicates whether the data could be read successfully, whereas the actual
106 // notifications will be stored in |notifications|. 106 // notifications will be stored in |notifications|.
107 void DidGetNotifications( 107 void DidGetNotifications(
108 int request_id, 108 int request_id,
109 const std::string& filter_tag, 109 const std::string& filter_tag,
110 bool success, 110 bool success,
111 const std::vector<NotificationDatabaseData>& notifications); 111 const std::vector<NotificationDatabaseData>& notifications);
(...skipping 26 matching lines...) Expand all
138 std::map<int, base::Closure> close_closures_; 138 std::map<int, base::Closure> close_closures_;
139 139
140 base::WeakPtrFactory<NotificationMessageFilter> weak_factory_io_; 140 base::WeakPtrFactory<NotificationMessageFilter> weak_factory_io_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(NotificationMessageFilter); 142 DISALLOW_COPY_AND_ASSIGN(NotificationMessageFilter);
143 }; 143 };
144 144
145 } // namespace content 145 } // namespace content
146 146
147 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_MESSAGE_FILTER_H_ 147 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698