| 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "NotificationPresenterImpl.h" | 32 #include "NotificationPresenterImpl.h" |
| 33 | 33 |
| 34 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) | 34 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) |
| 35 | 35 |
| 36 #include "KURL.h" | |
| 37 #include "Notification.h" | 36 #include "Notification.h" |
| 38 #include "ScriptExecutionContext.h" | 37 #include "ScriptExecutionContext.h" |
| 39 #include "SecurityOrigin.h" | 38 #include "SecurityOrigin.h" |
| 39 #include "core/platform/KURL.h" |
| 40 | 40 |
| 41 #include "WebNotification.h" | 41 #include "WebNotification.h" |
| 42 #include "WebNotificationPermissionCallback.h" | 42 #include "WebNotificationPermissionCallback.h" |
| 43 #include "WebNotificationPresenter.h" | 43 #include "WebNotificationPresenter.h" |
| 44 #include <public/WebURL.h> | 44 #include <public/WebURL.h> |
| 45 | 45 |
| 46 #include <wtf/PassRefPtr.h> | 46 #include <wtf/PassRefPtr.h> |
| 47 | 47 |
| 48 using namespace WebCore; | 48 using namespace WebCore; |
| 49 | 49 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 #if ENABLE(NOTIFICATIONS) | 142 #if ENABLE(NOTIFICATIONS) |
| 143 void NotificationPresenterImpl::requestPermission(ScriptExecutionContext* contex
t, WTF::PassRefPtr<NotificationPermissionCallback> callback) | 143 void NotificationPresenterImpl::requestPermission(ScriptExecutionContext* contex
t, WTF::PassRefPtr<NotificationPermissionCallback> callback) |
| 144 { | 144 { |
| 145 m_presenter->requestPermission(WebSecurityOrigin(context->securityOrigin()),
new NotificationPermissionCallbackClient(m_presenter, context->securityOrigin()
, callback)); | 145 m_presenter->requestPermission(WebSecurityOrigin(context->securityOrigin()),
new NotificationPermissionCallbackClient(m_presenter, context->securityOrigin()
, callback)); |
| 146 } | 146 } |
| 147 #endif // ENABLE(NOTIFICATIONS) | 147 #endif // ENABLE(NOTIFICATIONS) |
| 148 | 148 |
| 149 } // namespace WebKit | 149 } // namespace WebKit |
| 150 | 150 |
| 151 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) | 151 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) |
| OLD | NEW |