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..73767019ace4cc09e10e5a3043e13347f0fdeb06 |
--- /dev/null |
+++ b/content/browser/presentation/presentation_service_impl.h |
@@ -0,0 +1,42 @@ |
+// 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_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; |
+ |
+ // TODO(avayvod): a stub. A proper PresentationServiceContext class will |
+ // 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.
|
+ static void CreateService( |
+ mojo::InterfaceRequest<presentation::PresentationService> request); |
+ |
+ protected: |
+ PresentationServiceImpl(); |
+ |
+ private: |
+ // PresentationService implementation. |
+ void AddDeviceAvailabilityListener() override; |
+ void RemoveDeviceAvailabilityListener() override; |
+ |
+ // mojo::InterfaceImpl. |
+ 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.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |