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 CreateService( |
| 22 mojo::InterfaceRequest<presentation::PresentationService> request); |
| 23 |
| 24 protected: |
| 25 PresentationServiceImpl(); |
| 26 |
| 27 private: |
| 28 // PresentationService implementation. |
| 29 void SetClient(presentation::PresentationServiceClientPtr client) override; |
| 30 void UpdateAvailableChangeWatched(bool watched) override; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
OLD | NEW |