Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1286)

Unified Diff: content/browser/presentation/presentation_service_impl.h

Issue 839773002: Plumbing from WebPresentationClient to the Presentation Mojo service for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..2a4a9b6a57db40d1a659af1554b0137c11cf61f0
--- /dev/null
+++ b/content/browser/presentation/presentation_service_impl.h
@@ -0,0 +1,37 @@
+// 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:
+ // PresentationService implementation.
+ void SetClient(presentation::PresentationServiceClientPtr client) override;
+ void UpdateAvailableChangeWatched(bool watched) override;
+
+ DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698