| 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 "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/presentation/presentation_service.mojom.h" | 10 #include "content/common/presentation/presentation_service.mojom.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool available); | 51 bool available); |
| 52 void OnSessionCreated( | 52 void OnSessionCreated( |
| 53 blink::WebPresentationSessionClientCallbacks* callback, | 53 blink::WebPresentationSessionClientCallbacks* callback, |
| 54 presentation::PresentationSessionInfoPtr session_info, | 54 presentation::PresentationSessionInfoPtr session_info, |
| 55 presentation::PresentationErrorPtr error); | 55 presentation::PresentationErrorPtr error); |
| 56 void OnDefaultSessionStarted( | 56 void OnDefaultSessionStarted( |
| 57 presentation::PresentationSessionInfoPtr session_info); | 57 presentation::PresentationSessionInfoPtr session_info); |
| 58 void OnSessionStateChange( | 58 void OnSessionStateChange( |
| 59 presentation::PresentationSessionInfoPtr session_info, | 59 presentation::PresentationSessionInfoPtr session_info, |
| 60 presentation::PresentationSessionState session_state); | 60 presentation::PresentationSessionState session_state); |
| 61 void OnSessionTextMessageReceived( |
| 62 presentation::PresentationSessionInfoPtr session_info, |
| 63 const std::string& message); |
| 61 | 64 |
| 62 void ConnectToPresentationServiceIfNeeded(); | 65 void ConnectToPresentationServiceIfNeeded(); |
| 63 | 66 |
| 64 void DoUpdateAvailableChangeWatched( | 67 void DoUpdateAvailableChangeWatched( |
| 65 const std::string& presentation_url, | 68 const std::string& presentation_url, |
| 66 bool watched); | 69 bool watched); |
| 67 | 70 |
| 68 // Used as a weak reference. Can be null since lifetime is bound to the frame. | 71 // Used as a weak reference. Can be null since lifetime is bound to the frame. |
| 69 blink::WebPresentationController* controller_; | 72 blink::WebPresentationController* controller_; |
| 70 presentation::PresentationServicePtr presentation_service_; | 73 presentation::PresentationServicePtr presentation_service_; |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 } // namespace content | 76 } // namespace content |
| 74 | 77 |
| 75 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 78 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| OLD | NEW |