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 { | |
jam
2013/01/16 16:55:46
nit: interface is redundant. it's also not used el
jiayl
2013/01/16 17:08:53
I didn't call it WebRtcObserver because
1. we alr
| |
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 | |
jam
2013/01/16 16:55:46
where does local id come from? it's the first time
jiayl
2013/01/16 17:08:53
It's assigned to each PeerConnection by PeerConnec
| |
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_INTERNALS_INTERFACE_H_ | |
OLD | NEW |