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 typedef mojo::Callback<void(bool)> AvailabilityCallback; | |
29 | |
30 // PresentationService implementation. | |
31 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
| |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); | |
34 }; | |
35 | |
36 } // namespace content | |
37 | |
38 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | |
OLD | NEW |