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

Side by Side Diff: chrome/browser/notifications/platform_notification_service_impl.h

Issue 776813004: Introduce new content APIs for persistent notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-sw-contentclient
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | chrome/browser/notifications/platform_notification_service_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/platform_notification_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698