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

Side by Side 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: Updated comment Created 5 years, 10 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 unified diff | Download patch
OLDNEW
(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 CreateMojoService(
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(
32 const mojo::String& presentation_url,
33 const AvailabilityCallback& callback) override;
34 void OnScreenAvailabilityListenerRemoved() override;
35
36 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/presentation/OWNERS ('k') | content/browser/presentation/presentation_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698