Chromium Code Reviews| Index: third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h |
| diff --git a/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d2375fad69d77684705b9f515328d7f3606e9124 |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionCallbacks.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
haraken
2017/01/13 04:01:24
2017
zhaobin
2017/01/18 18:25:47
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebPresentationConnectionCallbacks_h |
| +#define WebPresentationConnectionCallbacks_h |
| + |
| +#include "public/platform/WebCallbacks.h" |
| +#include "public/platform/WebCommon.h" |
| + |
| +namespace blink { |
| + |
| +class WebPresentationConnection; |
| +struct WebPresentationError; |
| +struct WebPresentationSessionInfo; |
| + |
| +// If session was created, callback's onSuccess() is invoked with the |
| +// information about the presentation session created by the embedder. |
| +// Otherwise, onError() is invoked with the error code and message. |
| +class WebPresentationConnectionCallbacks |
| + : public WebCallbacks<const WebPresentationSessionInfo&, |
| + const WebPresentationError&> { |
| + public: |
| + // Returns newly created PresentationConnection object if |
| + // WebCallbacks::onSuccess() has been called. |
| + virtual WebPresentationConnection* getConnection() = 0; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebPresentationConnectionCallbacks_h |