| 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/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 blink::WebPresentationController* controller); | 34 blink::WebPresentationController* controller); |
| 35 virtual void updateAvailableChangeWatched(bool watched); | 35 virtual void updateAvailableChangeWatched(bool watched); |
| 36 virtual void startSession( | 36 virtual void startSession( |
| 37 const blink::WebString& presentationUrl, | 37 const blink::WebString& presentationUrl, |
| 38 const blink::WebString& presentationId, | 38 const blink::WebString& presentationId, |
| 39 blink::WebPresentationSessionClientCallbacks* callback); | 39 blink::WebPresentationSessionClientCallbacks* callback); |
| 40 virtual void joinSession( | 40 virtual void joinSession( |
| 41 const blink::WebString& presentationUrl, | 41 const blink::WebString& presentationUrl, |
| 42 const blink::WebString& presentationId, | 42 const blink::WebString& presentationId, |
| 43 blink::WebPresentationSessionClientCallbacks* callback); | 43 blink::WebPresentationSessionClientCallbacks* callback); |
| 44 virtual void closeSession( |
| 45 const blink::WebString& presentationUrl, |
| 46 const blink::WebString& presentationId); |
| 44 | 47 |
| 45 // RenderFrameObserver | 48 // RenderFrameObserver |
| 46 void DidChangeDefaultPresentation() override; | 49 void DidChangeDefaultPresentation() override; |
| 47 | 50 |
| 48 void OnScreenAvailabilityChanged( | 51 void OnScreenAvailabilityChanged( |
| 49 const std::string& presentation_url, | 52 const std::string& presentation_url, |
| 50 bool available); | 53 bool available); |
| 51 void OnSessionCreated( | 54 void OnSessionCreated( |
| 52 blink::WebPresentationSessionClientCallbacks* callback, | 55 blink::WebPresentationSessionClientCallbacks* callback, |
| 53 presentation::PresentationSessionInfoPtr session_info, | 56 presentation::PresentationSessionInfoPtr session_info, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 70 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is | 73 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is |
| 71 // needed. | 74 // needed. |
| 72 using PresentationSessionDispatchers = | 75 using PresentationSessionDispatchers = |
| 73 ScopedVector<PresentationSessionDispatcher>; | 76 ScopedVector<PresentationSessionDispatcher>; |
| 74 PresentationSessionDispatchers presentation_session_dispatchers_; | 77 PresentationSessionDispatchers presentation_session_dispatchers_; |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 } // namespace content | 80 } // namespace content |
| 78 | 81 |
| 79 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 82 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| OLD | NEW |