| 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 postMessage( |
| 45 const blink::WebString& presentationUrl, |
| 46 const blink::WebString& presentationId, |
| 47 const blink::WebString& message); |
| 44 virtual void closeSession( | 48 virtual void closeSession( |
| 45 const blink::WebString& presentationUrl, | 49 const blink::WebString& presentationUrl, |
| 46 const blink::WebString& presentationId); | 50 const blink::WebString& presentationId); |
| 47 | 51 |
| 48 // RenderFrameObserver | 52 // RenderFrameObserver |
| 49 void DidChangeDefaultPresentation() override; | 53 void DidChangeDefaultPresentation() override; |
| 50 | 54 |
| 51 void OnScreenAvailabilityChanged( | 55 void OnScreenAvailabilityChanged( |
| 52 const std::string& presentation_url, | 56 const std::string& presentation_url, |
| 53 bool available); | 57 bool available); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is | 77 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is |
| 74 // needed. | 78 // needed. |
| 75 using PresentationSessionDispatchers = | 79 using PresentationSessionDispatchers = |
| 76 ScopedVector<PresentationSessionDispatcher>; | 80 ScopedVector<PresentationSessionDispatcher>; |
| 77 PresentationSessionDispatchers presentation_session_dispatchers_; | 81 PresentationSessionDispatchers presentation_session_dispatchers_; |
| 78 }; | 82 }; |
| 79 | 83 |
| 80 } // namespace content | 84 } // namespace content |
| 81 | 85 |
| 82 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 86 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| OLD | NEW |