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

Unified Diff: talk/app/webrtc/fakemediacontroller.h

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: No changes to const parameters. Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | talk/app/webrtc/mediacontroller.h » ('j') | talk/app/webrtc/mediacontroller.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/fakemediacontroller.h
diff --git a/talk/media/devices/linuxdevicemanager.h b/talk/app/webrtc/fakemediacontroller.h
similarity index 69%
copy from talk/media/devices/linuxdevicemanager.h
copy to talk/app/webrtc/fakemediacontroller.h
index 1eb648f395865d71daaaf7a950862ebd60cb6372..4f76b3fc023a0118d682fd9aa3c1e7e0d6f30802 100644
--- a/talk/media/devices/linuxdevicemanager.h
+++ b/talk/app/webrtc/fakemediacontroller.h
@@ -1,6 +1,6 @@
/*
* libjingle
- * Copyright 2004 Google Inc.
+ * Copyright 2015 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -25,31 +25,28 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_
-#define TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_
+#ifndef TALK_APP_WEBRTC_FAKEMEDIACONTROLLER_H_
+#define TALK_APP_WEBRTC_FAKEMEDIACONTROLLER_H_
-#include <string>
-#include <vector>
-
-#include "talk/media/devices/devicemanager.h"
-#include "webrtc/sound/soundsystemfactory.h"
-#include "webrtc/base/sigslot.h"
-#include "webrtc/base/stringencode.h"
+#include "talk/app/webrtc/mediacontroller.h"
+#include "webrtc/base/checks.h"
+#include "webrtc/call.h"
namespace cricket {
-class LinuxDeviceManager : public DeviceManager {
+class FakeMediaController : public webrtc::MediaControllerInterface {
public:
- LinuxDeviceManager();
- virtual ~LinuxDeviceManager();
-
- virtual bool GetVideoCaptureDevices(std::vector<Device>* devs);
+ explicit FakeMediaController(webrtc::Call* call) : call_(call) {
+ RTC_DCHECK(nullptr != call_);
+ }
+ ~FakeMediaController() override {}
+ webrtc::Call* call_w() override { return call_; }
+ void OnPacketSent(const webrtc::SentPacket& sent_packet) {
+ call_->OnPacketSent(sent_packet);
+ }
private:
- virtual bool GetAudioDevices(bool input, std::vector<Device>* devs);
- rtc::SoundSystemHandle sound_system_;
+ webrtc::Call* call_;
};
-
} // namespace cricket
-
-#endif // TALK_MEDIA_DEVICES_LINUXDEVICEMANAGER_H_
+#endif // TALK_APP_WEBRTC_FAKEMEDIACONTROLLER_H_
« no previous file with comments | « no previous file | talk/app/webrtc/mediacontroller.h » ('j') | talk/app/webrtc/mediacontroller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698