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