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

Side by Side Diff: content/renderer/presentation/presentation_dispatcher.h

Issue 889913002: Update references to WebPresentation* interfaces in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
« no previous file with comments | « no previous file | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
7 7
8 #include "content/common/presentation/presentation_service.mojom.h" 8 #include "content/common/presentation/presentation_service.mojom.h"
9 #include "content/public/renderer/render_frame_observer.h" 9 #include "content/public/renderer/render_frame_observer.h"
10 #include "third_party/WebKit/public/platform/WebPresentationClient.h" 10 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio nClient.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // PresentationDispatcher is a delegate for Presentation API messages used by 14 // PresentationDispatcher is a delegate for Presentation API messages used by
15 // Blink. It forwards the calls to the Mojo PresentationService. 15 // Blink. It forwards the calls to the Mojo PresentationService.
16 class PresentationDispatcher 16 class PresentationDispatcher
17 : public RenderFrameObserver, 17 : public RenderFrameObserver,
18 public blink::WebPresentationClient { 18 public blink::WebPresentationClient {
19 public: 19 public:
20 explicit PresentationDispatcher(RenderFrame* render_frame); 20 explicit PresentationDispatcher(RenderFrame* render_frame);
(...skipping 10 matching lines...) Expand all
31 void ConnectToPresentationServiceIfNeeded(); 31 void ConnectToPresentationServiceIfNeeded();
32 32
33 // Used as a weak reference. Can be null since lifetime is bound to the frame. 33 // Used as a weak reference. Can be null since lifetime is bound to the frame.
34 blink::WebPresentationController* controller_; 34 blink::WebPresentationController* controller_;
35 presentation::PresentationServicePtr presentation_service_; 35 presentation::PresentationServicePtr presentation_service_;
36 }; 36 };
37 37
38 } // namespace content 38 } // namespace content
39 39
40 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 40 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698