| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_MEDIA_CAST_REMOTING_CONNECTOR_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_CAST_REMOTING_CONNECTOR_H_ |
| 6 #define CHROME_BROWSER_MEDIA_CAST_REMOTING_CONNECTOR_H_ | 6 #define CHROME_BROWSER_MEDIA_CAST_REMOTING_CONNECTOR_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/supports_user_data.h" | 11 #include "base/supports_user_data.h" |
| 12 #include "chrome/browser/media/router/media_routes_observer.h" | 12 #include "chrome/browser/media/router/media_routes_observer.h" |
| 13 #include "chrome/browser/media/router/route_message.h" | 13 #include "chrome/common/media_router/route_message.h" |
| 14 #include "media/mojo/interfaces/remoting.mojom.h" | 14 #include "media/mojo/interfaces/remoting.mojom.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class RenderFrameHost; | 17 class RenderFrameHost; |
| 18 class WebContents; | 18 class WebContents; |
| 19 } | 19 } |
| 20 | 20 |
| 21 // CastRemotingConnector connects a single source (a media element in a render | 21 // CastRemotingConnector connects a single source (a media element in a render |
| 22 // frame) with a single sink (a media player in a remote device). There is one | 22 // frame) with a single sink (a media player in a remote device). There is one |
| 23 // instance of a CastRemotingConnector per source WebContents (representing a | 23 // instance of a CastRemotingConnector per source WebContents (representing a |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 base::WeakPtrFactory<CastRemotingConnector> weak_factory_; | 198 base::WeakPtrFactory<CastRemotingConnector> weak_factory_; |
| 199 | 199 |
| 200 // Key used with the base::SupportsUserData interface to search for an | 200 // Key used with the base::SupportsUserData interface to search for an |
| 201 // instance of CastRemotingConnector owned by a WebContents. | 201 // instance of CastRemotingConnector owned by a WebContents. |
| 202 static const void* const kUserDataKey; | 202 static const void* const kUserDataKey; |
| 203 | 203 |
| 204 DISALLOW_COPY_AND_ASSIGN(CastRemotingConnector); | 204 DISALLOW_COPY_AND_ASSIGN(CastRemotingConnector); |
| 205 }; | 205 }; |
| 206 | 206 |
| 207 #endif // CHROME_BROWSER_MEDIA_CAST_REMOTING_CONNECTOR_H_ | 207 #endif // CHROME_BROWSER_MEDIA_CAST_REMOTING_CONNECTOR_H_ |
| OLD | NEW |