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

Side by Side Diff: public/web/WebNotificationPresenter.h

Issue 393863002: Switch Blink to the new Web Notifications permission path. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/NotificationPresenterImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // FIXME: Remove cancel() once Chromium updated to the new name, and make cl ose() pure virtual. 56 // FIXME: Remove cancel() once Chromium updated to the new name, and make cl ose() pure virtual.
57 virtual void close(const WebNotification&) { } 57 virtual void close(const WebNotification&) { }
58 virtual void cancel(const WebNotification&) = 0; 58 virtual void cancel(const WebNotification&) = 0;
59 59
60 // Indiciates that the notification object subscribed to events for a previo usly shown notification is 60 // Indiciates that the notification object subscribed to events for a previo usly shown notification is
61 // being destroyed. Does _not_ remove the notification if being shown, but detaches it from receiving events. 61 // being destroyed. Does _not_ remove the notification if being shown, but detaches it from receiving events.
62 virtual void objectDestroyed(const WebNotification&) = 0; 62 virtual void objectDestroyed(const WebNotification&) = 0;
63 63
64 // Checks the permission level for the given origin. 64 // Checks the permission level for the given origin.
65 virtual Permission checkPermission(const WebSecurityOrigin&) = 0; 65 virtual Permission checkPermission(const WebSecurityOrigin&) = 0;
66
67 // Requests permission for a given origin. This operation is asynchronous a nd the callback provided
68 // will be invoked when the permission decision is made. Callback pointer m ust remain
69 // valid until called.
70 // FIXME: Remove once permission requests will be routed through the Notific ationPermissionClient.
71 virtual void requestPermission(const WebSecurityOrigin&, WebNotificationPerm issionCallback*) = 0;
72 }; 66 };
73 67
74 } // namespace blink 68 } // namespace blink
75 69
76 #endif 70 #endif
OLDNEW
« no previous file with comments | « Source/web/NotificationPresenterImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698