Index: chrome/browser/media/webrtc_internals.h |
diff --git a/content/browser/media/webrtc_internals.h b/chrome/browser/media/webrtc_internals.h |
similarity index 65% |
rename from content/browser/media/webrtc_internals.h |
rename to chrome/browser/media/webrtc_internals.h |
index 50db3dae6219aa564f8ac9687e43eb7295b5d45e..ba4fe707fb0869746865a7ef5f19840ec68aa437 100644 |
--- a/content/browser/media/webrtc_internals.h |
+++ b/chrome/browser/media/webrtc_internals.h |
@@ -2,18 +2,14 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
-#define CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
+#ifndef CHROME_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
+#define CHROME_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
#include "base/memory/singleton.h" |
#include "base/observer_list.h" |
#include "base/process.h" |
#include "base/values.h" |
-#include "content/common/content_export.h" |
- |
-struct PeerConnectionInfo; |
- |
-namespace content { |
+#include "content/public/browser/webrtc_internals_interface.h" |
class WebRTCInternalsUIObserver; |
@@ -21,13 +17,17 @@ class WebRTCInternalsUIObserver; |
// It collects peer connection infomation from the renderers, |
// forwards the data to WebRTCInternalsUIObserver and |
// sends data collecting commands to the renderers. |
-class CONTENT_EXPORT WebRTCInternals { |
+class WebRTCInternals : public content::WebRTCInternalsInterface{ |
vrk (LEFT CHROMIUM)
2013/01/15 22:54:13
nit: space between "content::WebRTCInternalsInterf
jiayl
2013/01/15 23:03:31
Done.
|
public: |
static WebRTCInternals* GetInstance(); |
// Methods called when peer connection status changes. |
- void AddPeerConnection(base::ProcessId pid, const PeerConnectionInfo& info); |
- void RemovePeerConnection(base::ProcessId pid, int lid); |
+ virtual void AddPeerConnection(base::ProcessId pid, |
+ int lid, |
+ const std::string& url, |
+ const std::string& servers, |
+ const std::string& constraints) OVERRIDE; |
+ virtual void RemovePeerConnection(base::ProcessId pid, int lid) OVERRIDE; |
// Methods for adding or removing WebRTCInternalsUIObserver. |
void AddObserver(WebRTCInternalsUIObserver *observer); |
@@ -47,6 +47,4 @@ class CONTENT_EXPORT WebRTCInternals { |
base::ListValue peer_connection_data_; |
}; |
-} // namespace content |
- |
-#endif // CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |
+#endif // CHROME_BROWSER_MEDIA_WEBRTC_INTERNALS_H_ |