OLD | NEW |
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 <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/containers/scoped_ptr_map.h" | 11 #include "base/containers/scoped_ptr_map.h" |
12 #include "base/id_map.h" | 12 #include "base/id_map.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "content/common/presentation/presentation_service.mojom.h" | 16 #include "content/common/presentation/presentation_service.mojom.h" |
17 #include "content/public/renderer/render_frame_observer.h" | 17 #include "content/public/renderer/render_frame_observer.h" |
| 18 #include "mojo/public/cpp/bindings/binding.h" |
18 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nClient.h" | 19 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nClient.h" |
19 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | |
20 | 20 |
21 namespace blink { | 21 namespace blink { |
22 class WebPresentationAvailabilityObserver; | 22 class WebPresentationAvailabilityObserver; |
23 class WebString; | 23 class WebString; |
24 } // namespace blink | 24 } // namespace blink |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 | 27 |
28 // PresentationDispatcher is a delegate for Presentation API messages used by | 28 // PresentationDispatcher is a delegate for Presentation API messages used by |
29 // Blink. It forwards the calls to the Mojo PresentationService. | 29 // Blink. It forwards the calls to the Mojo PresentationService. |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // Updates the listening state of availability for |status| and notifies the | 158 // Updates the listening state of availability for |status| and notifies the |
159 // client. | 159 // client. |
160 void UpdateListeningState(AvailabilityStatus* status); | 160 void UpdateListeningState(AvailabilityStatus* status); |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 162 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace content | 165 } // namespace content |
166 | 166 |
167 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 167 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
OLD | NEW |