| OLD | NEW |
| 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 #include "modules/notifications/NotificationPermissionClient.h" | 5 #include "modules/notifications/NotificationPermissionClient.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
| 9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 return nullptr; | 25 return nullptr; |
| 26 | 26 |
| 27 return static_cast<NotificationPermissionClient*>(WillBeHeapSupplement<Local
Frame>::from(document->frame(), supplementName())); | 27 return static_cast<NotificationPermissionClient*>(WillBeHeapSupplement<Local
Frame>::from(document->frame(), supplementName())); |
| 28 } | 28 } |
| 29 | 29 |
| 30 void provideNotificationPermissionClientTo(LocalFrame& frame, PassOwnPtrWillBeRa
wPtr<NotificationPermissionClient> client) | 30 void provideNotificationPermissionClientTo(LocalFrame& frame, PassOwnPtrWillBeRa
wPtr<NotificationPermissionClient> client) |
| 31 { | 31 { |
| 32 frame.provideSupplement(NotificationPermissionClient::supplementName(), clie
nt); | 32 frame.provideSupplement(NotificationPermissionClient::supplementName(), clie
nt); |
| 33 } | 33 } |
| 34 | 34 |
| 35 } | 35 } // namespace blink |
| OLD | NEW |