OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/common/presentation/presentation_service.mojom.h" |
| 10 #include "mojo/public/cpp/bindings/interface_request.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 // Implements the PresentationService Mojo interface. |
| 15 // This service can be created from a RenderFrameHost. |
| 16 class PresentationServiceImpl : |
| 17 public mojo::InterfaceImpl<presentation::PresentationService> { |
| 18 public: |
| 19 ~PresentationServiceImpl() override; |
| 20 |
| 21 static void CreateMojoService( |
| 22 mojo::InterfaceRequest<presentation::PresentationService> request); |
| 23 |
| 24 protected: |
| 25 PresentationServiceImpl(); |
| 26 |
| 27 private: |
| 28 typedef mojo::Callback<void(bool)> AvailabilityCallback; |
| 29 |
| 30 // PresentationService implementation. |
| 31 void GetScreenAvailability( |
| 32 const mojo::String& presentation_url, |
| 33 const AvailabilityCallback& callback) override; |
| 34 void OnScreenAvailabilityListenerRemoved() override; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); |
| 37 }; |
| 38 |
| 39 } // namespace content |
| 40 |
| 41 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
OLD | NEW |