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

Side by Side Diff: content/browser/notifications/notification_event_dispatcher_impl.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 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 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 #include "content/browser/notifications/notification_event_dispatcher_impl.h" 5 #include "content/browser/notifications/notification_event_dispatcher_impl.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "content/browser/notifications/platform_notification_context_impl.h" 8 #include "content/browser/notifications/platform_notification_context_impl.h"
9 #include "content/browser/service_worker/service_worker_context_wrapper.h" 9 #include "content/browser/service_worker/service_worker_context_wrapper.h"
10 #include "content/browser/service_worker/service_worker_registration.h" 10 #include "content/browser/service_worker/service_worker_registration.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 } // namespace 170 } // namespace
171 171
172 // static 172 // static
173 NotificationEventDispatcher* NotificationEventDispatcher::GetInstance() { 173 NotificationEventDispatcher* NotificationEventDispatcher::GetInstance() {
174 return NotificationEventDispatcherImpl::GetInstance(); 174 return NotificationEventDispatcherImpl::GetInstance();
175 } 175 }
176 176
177 NotificationEventDispatcherImpl* 177 NotificationEventDispatcherImpl*
178 NotificationEventDispatcherImpl::GetInstance() { 178 NotificationEventDispatcherImpl::GetInstance() {
179 DCHECK_CURRENTLY_ON(BrowserThread::UI); 179 DCHECK_CURRENTLY_ON(BrowserThread::UI);
180 return Singleton<NotificationEventDispatcherImpl>::get(); 180 return base::Singleton<NotificationEventDispatcherImpl>::get();
181 } 181 }
182 182
183 NotificationEventDispatcherImpl::NotificationEventDispatcherImpl() {} 183 NotificationEventDispatcherImpl::NotificationEventDispatcherImpl() {}
184 184
185 NotificationEventDispatcherImpl::~NotificationEventDispatcherImpl() {} 185 NotificationEventDispatcherImpl::~NotificationEventDispatcherImpl() {}
186 186
187 void NotificationEventDispatcherImpl::DispatchNotificationClickEvent( 187 void NotificationEventDispatcherImpl::DispatchNotificationClickEvent(
188 BrowserContext* browser_context, 188 BrowserContext* browser_context,
189 int64_t persistent_notification_id, 189 int64_t persistent_notification_id,
190 const GURL& origin, 190 const GURL& origin,
(...skipping 20 matching lines...) Expand all
211 base::Bind(&ReadNotificationDatabaseData, 211 base::Bind(&ReadNotificationDatabaseData,
212 persistent_notification_id, 212 persistent_notification_id,
213 origin, 213 origin,
214 action_index, 214 action_index,
215 dispatch_complete_callback, 215 dispatch_complete_callback,
216 service_worker_context, 216 service_worker_context,
217 notification_context)); 217 notification_context));
218 } 218 }
219 219
220 } // namespace content 220 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/notifications/notification_event_dispatcher_impl.h ('k') | content/browser/plugin_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698