Chromium Code Reviews| Index: content/renderer/presentation/presentation_session_client.h |
| diff --git a/content/renderer/presentation/presentation_session_client.h b/content/renderer/presentation/presentation_session_client.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b51c41e874e28cd23af782e89c26b31d06dd0f04 |
| --- /dev/null |
| +++ b/content/renderer/presentation/presentation_session_client.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ |
| +#define CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ |
| + |
| +#include "base/compiler_specific.h" |
| +#include "content/common/content_export.h" |
| +#include "third_party/WebKit/public/platform/modules/presentation/WebPresentationSessionClient.h" |
| + |
| +namespace content { |
| + |
| +class PresentationSessionDispatcher; |
| + |
| +// PresentationSessionClient is passed to the Blink layer if presentation |
| +// session has been created successfully. Owned by the callback. |
| +class CONTENT_EXPORT PresentationSessionClient |
| + : public NON_EXPORTED_BASE(blink::WebPresentationSessionClient) { |
| + public: |
| + explicit PresentationSessionClient(PresentationSessionDispatcher* dispatcher); |
| + ~PresentationSessionClient() override; |
| + |
| + // WebPresentationSessionClient implementation. |
| + virtual blink::WebString getUrl(); |
| + virtual blink::WebString getId(); |
| + |
| + private: |
| + PresentationSessionDispatcher* dispatcher_; |
|
mlamouri (slow - plz ping)
2015/02/26 22:24:26
That's not right. You do not control the lifetime
whywhat
2015/02/27 14:44:45
Done.
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_SESSION_CLIENT_H_ |