Chromium Code Reviews| 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_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 // TODO(avayvod): a stub. A proper PresentationServiceContext class will | |
| 22 // probably be required for the actual implementation. | |
|
mlamouri (slow - plz ping)
2015/01/08 15:08:54
I don't think you need that TODO. You will simply
whywhat
2015/01/08 17:28:53
Done.
| |
| 23 static void CreateService( | |
| 24 mojo::InterfaceRequest<presentation::PresentationService> request); | |
| 25 | |
| 26 protected: | |
| 27 PresentationServiceImpl(); | |
| 28 | |
| 29 private: | |
| 30 // PresentationService implementation. | |
| 31 void AddDeviceAvailabilityListener() override; | |
| 32 void RemoveDeviceAvailabilityListener() override; | |
| 33 | |
| 34 // mojo::InterfaceImpl. | |
| 35 void OnConnectionError() override; | |
|
mlamouri (slow - plz ping)
2015/01/08 15:08:54
You don't use |OnConnectionError|, just remove it.
whywhat
2015/01/08 17:28:53
Done.
| |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); | |
| 38 }; | |
| 39 | |
| 40 } // namespace content | |
| 41 | |
| 42 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | |
| OLD | NEW |