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

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

Issue 661643002: Adds a context message of the security origin for web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 5 years, 10 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 <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Displays the notification described in |params| to the user. A closure 49 // Displays the notification described in |params| to the user. A closure
50 // through which the notification can be closed will be stored in the 50 // through which the notification can be closed will be stored in the
51 // |cancel_callback| argument. This method must be called on the UI thread. 51 // |cancel_callback| argument. This method must be called on the UI thread.
52 virtual void DisplayNotification( 52 virtual void DisplayNotification(
53 BrowserContext* browser_context, 53 BrowserContext* browser_context,
54 const GURL& origin, 54 const GURL& origin,
55 const SkBitmap& icon, 55 const SkBitmap& icon,
56 const PlatformNotificationData& notification_data, 56 const PlatformNotificationData& notification_data,
57 scoped_ptr<DesktopNotificationDelegate> delegate, 57 scoped_ptr<DesktopNotificationDelegate> delegate,
58 int render_process_id,
59 base::Closure* cancel_callback) = 0; 58 base::Closure* cancel_callback) = 0;
60 59
61 // Displays the persistent notification described in |notification_data| to 60 // Displays the persistent notification described in |notification_data| to
62 // the user. This method must be called on the UI thread. 61 // the user. This method must be called on the UI thread.
63 virtual void DisplayPersistentNotification( 62 virtual void DisplayPersistentNotification(
64 BrowserContext* browser_context, 63 BrowserContext* browser_context,
65 int64 service_worker_registration_id, 64 int64 service_worker_registration_id,
66 const GURL& origin, 65 const GURL& origin,
67 const SkBitmap& icon, 66 const SkBitmap& icon,
68 const PlatformNotificationData& notification_data, 67 const PlatformNotificationData& notification_data) = 0;
69 int render_process_id) = 0;
70 68
71 // Closes the persistent notification identified by 69 // Closes the persistent notification identified by
72 // |persistent_notification_id|. This method must be called on the UI thread. 70 // |persistent_notification_id|. This method must be called on the UI thread.
73 virtual void ClosePersistentNotification( 71 virtual void ClosePersistentNotification(
74 BrowserContext* browser_context, 72 BrowserContext* browser_context,
75 const std::string& persistent_notification_id) = 0; 73 const std::string& persistent_notification_id) = 0;
76 }; 74 };
77 75
78 } // namespace content 76 } // namespace content
79 77
80 #endif // CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_ 78 #endif // CONTENT_PUBLIC_BROWSER_PLATFORM_NOTIFICATION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698