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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void DidChangeDefaultPresentation() override; | 70 void DidChangeDefaultPresentation() override; |
71 void DidCommitProvisionalLoad( | 71 void DidCommitProvisionalLoad( |
72 bool is_new_navigation, | 72 bool is_new_navigation, |
73 bool is_same_page_navigation) override; | 73 bool is_same_page_navigation) override; |
74 | 74 |
75 // presentation::PresentationServiceClient | 75 // presentation::PresentationServiceClient |
76 void OnScreenAvailabilityUpdated(bool available) override; | 76 void OnScreenAvailabilityUpdated(bool available) override; |
77 void OnSessionStateChanged( | 77 void OnSessionStateChanged( |
78 presentation::PresentationSessionInfoPtr session_info, | 78 presentation::PresentationSessionInfoPtr session_info, |
79 presentation::PresentationSessionState new_state) override; | 79 presentation::PresentationSessionState new_state) override; |
| 80 void OnScreenAvailabilityNotSupported() override; |
80 | 81 |
81 void OnSessionCreated( | 82 void OnSessionCreated( |
82 blink::WebPresentationSessionClientCallbacks* callback, | 83 blink::WebPresentationSessionClientCallbacks* callback, |
83 presentation::PresentationSessionInfoPtr session_info, | 84 presentation::PresentationSessionInfoPtr session_info, |
84 presentation::PresentationErrorPtr error); | 85 presentation::PresentationErrorPtr error); |
85 void OnDefaultSessionStarted( | 86 void OnDefaultSessionStarted( |
86 presentation::PresentationSessionInfoPtr session_info); | 87 presentation::PresentationSessionInfoPtr session_info); |
87 void OnSessionMessagesReceived( | 88 void OnSessionMessagesReceived( |
88 mojo::Array<presentation::SessionMessagePtr> messages); | 89 mojo::Array<presentation::SessionMessagePtr> messages); |
89 void DoSendMessage(const presentation::SessionMessage& session_message); | 90 void DoSendMessage(const presentation::SessionMessage& session_message); |
(...skipping 30 matching lines...) Expand all Loading... |
120 using AvailabilityObserversSet = | 121 using AvailabilityObserversSet = |
121 std::set<blink::WebPresentationAvailabilityObserver*>; | 122 std::set<blink::WebPresentationAvailabilityObserver*>; |
122 AvailabilityObserversSet availability_observers_; | 123 AvailabilityObserversSet availability_observers_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 125 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
125 }; | 126 }; |
126 | 127 |
127 } // namespace content | 128 } // namespace content |
128 | 129 |
129 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 130 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
OLD | NEW |