Chromium Code Reviews| Index: third_party/WebKit/Source/modules/presentation/ExistingPresentationConnectionCallbacks.h |
| diff --git a/third_party/WebKit/Source/modules/presentation/ExistingPresentationConnectionCallbacks.h b/third_party/WebKit/Source/modules/presentation/ExistingPresentationConnectionCallbacks.h |
| index 055de84f30d1756611ca0f9fcfacabec71d892d8..7ea37537dbd7e2fe8a814fc09b6589f5083d0c78 100644 |
| --- a/third_party/WebKit/Source/modules/presentation/ExistingPresentationConnectionCallbacks.h |
| +++ b/third_party/WebKit/Source/modules/presentation/ExistingPresentationConnectionCallbacks.h |
| @@ -7,6 +7,7 @@ |
| #include "platform/heap/Handle.h" |
| #include "public/platform/WebCallbacks.h" |
| +#include "public/platform/modules/presentation/WebPresentationConnectionCallbacks.h" |
| #include "wtf/Noncopyable.h" |
| namespace blink { |
| @@ -20,17 +21,21 @@ struct WebPresentationSessionInfo; |
| // underlying promise. It takes the PresentationConnection object that |
| // originated the call in its constructor and will resolve underlying promise |
| // with that object. |
| +// TODO(zhaobin): combine this class with PresentationConnectionCallbacks. |
|
mark a. foltz
2017/01/23 20:18:42
Can you file a crbug to track this and change this
zhaobin
2017/01/24 01:23:24
Done.
|
| class ExistingPresentationConnectionCallbacks final |
| - : public WebCallbacks<const WebPresentationSessionInfo&, |
| - const WebPresentationError&> { |
| + : public WebPresentationConnectionCallbacks { |
| public: |
| ExistingPresentationConnectionCallbacks(ScriptPromiseResolver*, |
| PresentationConnection*); |
| ~ExistingPresentationConnectionCallbacks() override = default; |
| + // WebCallbacks implementation |
| void onSuccess(const WebPresentationSessionInfo&) override; |
| void onError(const WebPresentationError&) override; |
| + // WebPresentationConnectionCallbacks implementation |
| + WebPresentationConnection* getConnection() override; |
| + |
| private: |
| Persistent<ScriptPromiseResolver> m_resolver; |
| Persistent<PresentationConnection> m_connection; |