| 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_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 using PresentationConnectionStateChangedCallback = | 47 using PresentationConnectionStateChangedCallback = |
| 48 base::Callback<void(const PresentationConnectionStateChangeInfo&)>; | 48 base::Callback<void(const PresentationConnectionStateChangeInfo&)>; |
| 49 | 49 |
| 50 // This class serves as a proxy to PSImpl. | 50 // This class serves as a proxy to PSImpl. |
| 51 class OffscreenPresentationClient { | 51 class OffscreenPresentationClient { |
| 52 public: | 52 public: |
| 53 OffscreenPresentationClient() {} | 53 OffscreenPresentationClient() {} |
| 54 | 54 |
| 55 virtual void OnSessionMessages( |
| 56 const content::PresentationSessionInfo& session, |
| 57 const ScopedVector<PresentationSessionMessage>& messages, |
| 58 bool pass_ownership) = 0; |
| 59 |
| 55 // For controller, add a receiver client | 60 // For controller, add a receiver client |
| 56 // For receiver, add a controller client | 61 // For receiver, add a controller client |
| 57 virtual void SetOffscreenPresentationClient(OffscreenPresentationClient*) = 0; | 62 virtual void SetOffscreenPresentationClient(OffscreenPresentationClient*) = 0; |
| 58 | 63 |
| 59 virtual void RemoveOffscreenPresentationClient( | 64 virtual void RemoveOffscreenPresentationClient( |
| 60 OffscreenPresentationClient*) = 0; | 65 OffscreenPresentationClient*) = 0; |
| 61 | 66 |
| 62 private: | 67 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(OffscreenPresentationClient); | 68 DISALLOW_COPY_AND_ASSIGN(OffscreenPresentationClient); |
| 64 }; | 69 }; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // offscreen_presentation_manager->RegisterOffscreenPresentationController(). | 246 // offscreen_presentation_manager->RegisterOffscreenPresentationController(). |
| 242 virtual void RegisterOffscreenPresentationClient( | 247 virtual void RegisterOffscreenPresentationClient( |
| 243 int render_process_id, | 248 int render_process_id, |
| 244 int render_frame_id, | 249 int render_frame_id, |
| 245 OffscreenPresentationClient*) = 0; | 250 OffscreenPresentationClient*) = 0; |
| 246 }; | 251 }; |
| 247 | 252 |
| 248 } // namespace content | 253 } // namespace content |
| 249 | 254 |
| 250 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 255 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
| OLD | NEW |