OLD | NEW |
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 Loading... |
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 |
OLD | NEW |