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