OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_WEBRTC_INTERNALS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEBRTC_INTERNALS_H_ |
| 7 |
| 8 #include "base/process.h" |
| 9 |
| 10 namespace content { |
| 11 // This interface is used to receive WebRTC updates. |
| 12 // An embedder may implement it and return it from ContentBrowserClient. |
| 13 class WebRTCInternals { |
| 14 public: |
| 15 // This method is called when a PeerConnection is created. |
| 16 // |pid| is the renderer process id, |lid| is the renderer local id used to |
| 17 // identify a PeerConnection, |url| is the url of the tab owning the |
| 18 // PeerConnection, |servers| is the servers configuration, |constraints| is |
| 19 // the media constraints used to initialize the PeerConnection. |
| 20 virtual void AddPeerConnection(base::ProcessId pid, |
| 21 int lid, |
| 22 const std::string& url, |
| 23 const std::string& servers, |
| 24 const std::string& constraints) = 0; |
| 25 |
| 26 // This method is called when PeerConnection is destroyed. |
| 27 // |pid| is the renderer process id, |lid| is the renderer local id. |
| 28 virtual void RemovePeerConnection(base::ProcessId pid, int lid) = 0; |
| 29 }; |
| 30 |
| 31 } // namespace content |
| 32 |
| 33 #endif // CONTENT_PUBLIC_BROWSER_WEBRTC_INTERNALSH_ |
OLD | NEW |