Chromium Code Reviews| 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_INTERFACE_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_WEBRTC_INTERNALS_INTERFACE_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 WebRTCInternalsInterface { | |
|
juberti
2013/01/16 01:11:21
Not sure what the prevailing style is here, but sh
| |
| 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; | |
|
vrk (LEFT CHROMIUM)
2013/01/15 22:54:13
nit: blank line here between method declaration an
jiayl
2013/01/15 23:03:31
Done.
| |
| 25 // This method is called when PeerConnection is destroyed. | |
| 26 // |pid| is the renderer process id, |lid| is the renderer local id. | |
| 27 virtual void RemovePeerConnection(base::ProcessId pid, int lid) = 0; | |
| 28 }; | |
| 29 | |
| 30 } // namespace content | |
| 31 | |
| 32 #endif // CONTENT_PUBLIC_BROWSER_WEBRTC_INTERNALS_INTERFACE_H_ | |
| OLD | NEW |