Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: content/public/browser/webrtc_internals.h

Issue 11876007: Connecting webrtc-internals WebUI frontend with the backend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@main
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698