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

Side by Side Diff: content/public/browser/platform_notification_service.h

Issue 1026853002: Integrate the notification database with the normal code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-ConfirmShow
Patch Set: Created 5 years, 8 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_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_
6 #define CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ 6 #define CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_
7 7
8 #include <stdint.h>
8 #include <string> 9 #include <string>
9 10
10 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
13 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onPermission.h" 14 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati onPermission.h"
14 15
15 class GURL; 16 class GURL;
16 class SkBitmap; 17 class SkBitmap;
17 18
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const GURL& origin, 55 const GURL& origin,
55 const SkBitmap& icon, 56 const SkBitmap& icon,
56 const PlatformNotificationData& notification_data, 57 const PlatformNotificationData& notification_data,
57 scoped_ptr<DesktopNotificationDelegate> delegate, 58 scoped_ptr<DesktopNotificationDelegate> delegate,
58 base::Closure* cancel_callback) = 0; 59 base::Closure* cancel_callback) = 0;
59 60
60 // Displays the persistent notification described in |notification_data| to 61 // Displays the persistent notification described in |notification_data| to
61 // the user. This method must be called on the UI thread. 62 // the user. This method must be called on the UI thread.
62 virtual void DisplayPersistentNotification( 63 virtual void DisplayPersistentNotification(
63 BrowserContext* browser_context, 64 BrowserContext* browser_context,
64 int64 service_worker_registration_id, 65 int64_t persistent_notification_id,
65 const GURL& origin, 66 const GURL& origin,
66 const SkBitmap& icon, 67 const SkBitmap& icon,
67 const PlatformNotificationData& notification_data) = 0; 68 const PlatformNotificationData& notification_data) = 0;
68 69
69 // Closes the persistent notification identified by 70 // Closes the persistent notification identified by
70 // |persistent_notification_id|. This method must be called on the UI thread. 71 // |persistent_notification_id|. This method must be called on the UI thread.
71 virtual void ClosePersistentNotification( 72 virtual void ClosePersistentNotification(
72 BrowserContext* browser_context, 73 BrowserContext* browser_context,
73 const std::string& persistent_notification_id) = 0; 74 int64_t persistent_notification_id) = 0;
74 }; 75 };
75 76
76 } // namespace content 77 } // namespace content
77 78
78 #endif // CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ 79 #endif // CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_
OLDNEW
« no previous file with comments | « content/public/browser/notification_event_dispatcher.h ('k') | content/public/common/persistent_notification_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698