| OLD | NEW |
| 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 CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "content/public/browser/platform_notification_service.h" | 9 #include "content/public/browser/platform_notification_service.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 blink::WebNotificationPermission CheckPermission( | 21 blink::WebNotificationPermission CheckPermission( |
| 22 content::ResourceContext* resource_context, | 22 content::ResourceContext* resource_context, |
| 23 const GURL& origin, | 23 const GURL& origin, |
| 24 int render_process_id) override;; | 24 int render_process_id) override;; |
| 25 void DisplayNotification( | 25 void DisplayNotification( |
| 26 content::BrowserContext* browser_context, | 26 content::BrowserContext* browser_context, |
| 27 const content::ShowDesktopNotificationHostMsgParams& params, | 27 const content::ShowDesktopNotificationHostMsgParams& params, |
| 28 scoped_ptr<content::DesktopNotificationDelegate> delegate, | 28 scoped_ptr<content::DesktopNotificationDelegate> delegate, |
| 29 int render_process_id, | 29 int render_process_id, |
| 30 base::Closure* cancel_callback) override; | 30 base::Closure* cancel_callback) override; |
| 31 void DisplayPersistentNotification( |
| 32 content::BrowserContext* browser_context, |
| 33 int64 service_worker_registration_id, |
| 34 const content::ShowDesktopNotificationHostMsgParams& params, |
| 35 int render_process_id) override; |
| 36 void ClosePersistentNotification( |
| 37 content::BrowserContext* browser_context, |
| 38 const std::string& persistent_notification_id) override; |
| 31 | 39 |
| 32 private: | 40 private: |
| 33 friend struct DefaultSingletonTraits<PlatformNotificationServiceImpl>; | 41 friend struct DefaultSingletonTraits<PlatformNotificationServiceImpl>; |
| 34 | 42 |
| 35 PlatformNotificationServiceImpl(); | 43 PlatformNotificationServiceImpl(); |
| 36 ~PlatformNotificationServiceImpl() override; | 44 ~PlatformNotificationServiceImpl() override; |
| 37 }; | 45 }; |
| 38 | 46 |
| 39 #endif // CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ | 47 #endif // CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ |
| OLD | NEW |