| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 virtual void stopListening(blink::WebPresentationAvailabilityObserver*); | 67 virtual void stopListening(blink::WebPresentationAvailabilityObserver*); |
| 68 | 68 |
| 69 // RenderFrameObserver implementation. | 69 // RenderFrameObserver implementation. |
| 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 OnScreenAvailabilityNotSupported() override; |
| 77 | 78 |
| 78 void OnSessionCreated( | 79 void OnSessionCreated( |
| 79 blink::WebPresentationSessionClientCallbacks* callback, | 80 blink::WebPresentationSessionClientCallbacks* callback, |
| 80 presentation::PresentationSessionInfoPtr session_info, | 81 presentation::PresentationSessionInfoPtr session_info, |
| 81 presentation::PresentationErrorPtr error); | 82 presentation::PresentationErrorPtr error); |
| 82 void OnDefaultSessionStarted( | 83 void OnDefaultSessionStarted( |
| 83 presentation::PresentationSessionInfoPtr session_info); | 84 presentation::PresentationSessionInfoPtr session_info); |
| 84 void OnSessionStateChange( | 85 void OnSessionStateChange( |
| 85 presentation::PresentationSessionInfoPtr session_info, | 86 presentation::PresentationSessionInfoPtr session_info, |
| 86 presentation::PresentationSessionState session_state); | 87 presentation::PresentationSessionState session_state); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |