Chromium Code Reviews| Index: content/browser/presentation/presentation_service_impl.h |
| diff --git a/content/browser/presentation/presentation_service_impl.h b/content/browser/presentation/presentation_service_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3a0be76505a40905db65e1d5c2658989e2d59079 |
| --- /dev/null |
| +++ b/content/browser/presentation/presentation_service_impl.h |
| @@ -0,0 +1,38 @@ |
| +// 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_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
| +#define CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
| + |
| +#include "base/macros.h" |
| +#include "content/common/presentation/presentation_service.mojom.h" |
| +#include "mojo/public/cpp/bindings/interface_request.h" |
| + |
| +namespace content { |
| + |
| +// Implements the PresentationService Mojo interface. |
| +// This service can be created from a RenderFrameHost. |
| +class PresentationServiceImpl : |
| + public mojo::InterfaceImpl<presentation::PresentationService> { |
| + public: |
| + ~PresentationServiceImpl() override; |
| + |
| + static void CreateService( |
| + mojo::InterfaceRequest<presentation::PresentationService> request); |
| + |
| + protected: |
| + PresentationServiceImpl(); |
| + |
| + private: |
| + typedef mojo::Callback<void(bool)> AvailabilityCallback; |
| + |
| + // PresentationService implementation. |
| + void GetScreenAvailability(const AvailabilityCallback& callback) override; |
|
mark a. foltz
2015/01/27 21:56:09
Should this implementation method be private? Whe
whywhat
2015/01/28 01:52:37
It's an override of the base class method which is
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |