| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/installedapp/InstalledAppController.h" | 5 #include "modules/installedapp/InstalledAppController.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 9 #include "platform/RuntimeEnabledFeatures.h" | 9 #include "platform/RuntimeEnabledFeatures.h" |
| 10 #include "public/platform/WebSecurityOrigin.h" | 10 #include "public/platform/WebSecurityOrigin.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // When detached, the client is no longer valid. | 47 // When detached, the client is no longer valid. |
| 48 if (!m_client) { | 48 if (!m_client) { |
| 49 callback.release()->onError(); | 49 callback.release()->onError(); |
| 50 return; | 50 return; |
| 51 } | 51 } |
| 52 | 52 |
| 53 // Client is expected to take ownership of the callback | 53 // Client is expected to take ownership of the callback |
| 54 m_client->getInstalledRelatedApps(url, std::move(callback)); | 54 m_client->getInstalledRelatedApps(url, std::move(callback)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void InstalledAppController::contextDestroyed() { | 57 void InstalledAppController::contextDestroyed(ExecutionContext*) { |
| 58 m_client = nullptr; | 58 m_client = nullptr; |
| 59 } | 59 } |
| 60 | 60 |
| 61 DEFINE_TRACE(InstalledAppController) { | 61 DEFINE_TRACE(InstalledAppController) { |
| 62 Supplement<LocalFrame>::trace(visitor); | 62 Supplement<LocalFrame>::trace(visitor); |
| 63 ContextLifecycleObserver::trace(visitor); | 63 ContextLifecycleObserver::trace(visitor); |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace blink | 66 } // namespace blink |
| OLD | NEW |