Chromium Code Reviews| Index: content/public/browser/webrtc_internals_interface.h |
| diff --git a/content/public/browser/webrtc_internals_interface.h b/content/public/browser/webrtc_internals_interface.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e08900c11d500130cf539ee4f4c0755ec60e6cc5 |
| --- /dev/null |
| +++ b/content/public/browser/webrtc_internals_interface.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_WEBRTC_INTERNALS_INTERFACE_H_ |
| +#define CONTENT_PUBLIC_BROWSER_WEBRTC_INTERNALS_INTERFACE_H_ |
| + |
| +#include "base/process.h" |
| + |
| +namespace content { |
| +// This interface is used to receive WebRTC updates. |
| +// An embedder may implement it and return it from ContentBrowserClient. |
| +class WebRTCInternalsInterface { |
|
juberti
2013/01/16 01:11:21
Not sure what the prevailing style is here, but sh
|
| + public: |
| + // This method is called when a PeerConnection is created. |
| + // |pid| is the renderer process id, |lid| is the renderer local id used to |
| + // identify a PeerConnection, |url| is the url of the tab owning the |
| + // PeerConnection, |servers| is the servers configuration, |constraints| is |
| + // the media constraints used to initialize the PeerConnection. |
| + virtual void AddPeerConnection(base::ProcessId pid, |
| + int lid, |
| + const std::string& url, |
| + const std::string& servers, |
| + 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.
|
| + // This method is called when PeerConnection is destroyed. |
| + // |pid| is the renderer process id, |lid| is the renderer local id. |
| + virtual void RemovePeerConnection(base::ProcessId pid, int lid) = 0; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_WEBRTC_INTERNALS_INTERFACE_H_ |