| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/app_banner/AppBannerController.h" | 5 #include "modules/app_banner/AppBannerController.h" |
| 6 | 6 |
| 7 #include "core/EventTypeNames.h" | 7 #include "core/EventTypeNames.h" |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/frame/DOMWindow.h" | 9 #include "core/frame/DOMWindow.h" |
| 10 #include "core/frame/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 std::move(eventRequest), platforms)) == | 47 std::move(eventRequest), platforms)) == |
| 48 DispatchEventResult::NotCanceled | 48 DispatchEventResult::NotCanceled |
| 49 ? mojom::AppBannerPromptReply::NONE | 49 ? mojom::AppBannerPromptReply::NONE |
| 50 : mojom::AppBannerPromptReply::CANCEL; | 50 : mojom::AppBannerPromptReply::CANCEL; |
| 51 | 51 |
| 52 AtomicString referrer = SecurityPolicy::generateReferrer( | 52 AtomicString referrer = SecurityPolicy::generateReferrer( |
| 53 m_frame->document()->getReferrerPolicy(), KURL(), | 53 m_frame->document()->getReferrerPolicy(), KURL(), |
| 54 m_frame->document()->outgoingReferrer()) | 54 m_frame->document()->outgoingReferrer()) |
| 55 .referrer; | 55 .referrer; |
| 56 | 56 |
| 57 callback.Run(reply, referrer.isNull() ? emptyString() : referrer); | 57 callback.Run(reply, referrer.isNull() ? emptyString : referrer); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| OLD | NEW |