OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ServiceWorkerWindowClientCallback_h |
| 6 #define ServiceWorkerWindowClientCallback_h |
| 7 |
| 8 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class ScriptPromiseResolver; |
| 13 |
| 14 class NavigateClientCallback : public WebServiceWorkerClientCallbacks { |
| 15 public: |
| 16 explicit NavigateClientCallback(ScriptPromiseResolver* resolver) |
| 17 : m_resolver(resolver) { } |
| 18 |
| 19 void onSuccess(WebPassOwnPtr<WebServiceWorkerClientInfo>) override; |
| 20 void onError(const WebServiceWorkerError&) override; |
| 21 |
| 22 private: |
| 23 Persistent<ScriptPromiseResolver> m_resolver; |
| 24 WTF_MAKE_NONCOPYABLE(NavigateClientCallback); |
| 25 }; |
| 26 |
| 27 } // namespace blink |
| 28 |
| 29 #endif // ServiceWorkerWindowClientCallback_h |
OLD | NEW |