Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
haraken
2017/01/13 04:01:24
2017
zhaobin
2017/01/18 18:25:47
Done.
| |
| 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 WebPresentationConnectionCallbacks_h | |
| 6 #define WebPresentationConnectionCallbacks_h | |
| 7 | |
| 8 #include "public/platform/WebCallbacks.h" | |
| 9 #include "public/platform/WebCommon.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class WebPresentationConnection; | |
| 14 struct WebPresentationError; | |
| 15 struct WebPresentationSessionInfo; | |
| 16 | |
| 17 // If session was created, callback's onSuccess() is invoked with the | |
| 18 // information about the presentation session created by the embedder. | |
| 19 // Otherwise, onError() is invoked with the error code and message. | |
| 20 class WebPresentationConnectionCallbacks | |
| 21 : public WebCallbacks<const WebPresentationSessionInfo&, | |
| 22 const WebPresentationError&> { | |
| 23 public: | |
| 24 // Returns newly created PresentationConnection object if | |
| 25 // WebCallbacks::onSuccess() has been called. | |
| 26 virtual WebPresentationConnection* getConnection() = 0; | |
| 27 }; | |
| 28 | |
| 29 } // namespace blink | |
| 30 | |
| 31 #endif // WebPresentationConnectionCallbacks_h | |
| OLD | NEW |