| 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 #ifndef ExistingPresentationConnectionCallbacks_h | 5 #ifndef ExistingPresentationConnectionCallbacks_h |
| 6 #define ExistingPresentationConnectionCallbacks_h | 6 #define ExistingPresentationConnectionCallbacks_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "platform/wtf/Noncopyable.h" |
| 9 #include "public/platform/WebCallbacks.h" | 10 #include "public/platform/WebCallbacks.h" |
| 10 #include "public/platform/modules/presentation/WebPresentationConnectionCallback
s.h" | 11 #include "public/platform/modules/presentation/WebPresentationConnectionCallback
s.h" |
| 11 #include "wtf/Noncopyable.h" | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class PresentationConnection; | 15 class PresentationConnection; |
| 16 class ScriptPromiseResolver; | 16 class ScriptPromiseResolver; |
| 17 struct WebPresentationInfo; | 17 struct WebPresentationInfo; |
| 18 struct WebPresentationError; | 18 struct WebPresentationError; |
| 19 | 19 |
| 20 // ExistingPresentationConnectionCallbacks extends WebCallbacks to resolve the | 20 // ExistingPresentationConnectionCallbacks extends WebCallbacks to resolve the |
| 21 // underlying promise. It takes the PresentationConnection object that | 21 // underlying promise. It takes the PresentationConnection object that |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 private: | 40 private: |
| 41 Persistent<ScriptPromiseResolver> resolver_; | 41 Persistent<ScriptPromiseResolver> resolver_; |
| 42 Persistent<PresentationConnection> connection_; | 42 Persistent<PresentationConnection> connection_; |
| 43 | 43 |
| 44 WTF_MAKE_NONCOPYABLE(ExistingPresentationConnectionCallbacks); | 44 WTF_MAKE_NONCOPYABLE(ExistingPresentationConnectionCallbacks); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace blink | 47 } // namespace blink |
| 48 | 48 |
| 49 #endif // ExistingPresentationConnectionCallbacks_h | 49 #endif // ExistingPresentationConnectionCallbacks_h |
| OLD | NEW |