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

Unified Diff: webrtc/pc/fakemediacontroller.h

Issue 2794943002: Delete MediaController class, move Call ownership to PeerConnection. (Closed)
Patch Set: Revert DCHECK addition. Created 3 years, 8 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
Index: webrtc/pc/fakemediacontroller.h
diff --git a/webrtc/pc/fakemediacontroller.h b/webrtc/pc/fakemediacontroller.h
deleted file mode 100644
index 6d639ed18e153535add3f3413939d325dff2e66b..0000000000000000000000000000000000000000
--- a/webrtc/pc/fakemediacontroller.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2015 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_PC_FAKEMEDIACONTROLLER_H_
-#define WEBRTC_PC_FAKEMEDIACONTROLLER_H_
-
-#include "webrtc/base/checks.h"
-#include "webrtc/media/base/mediachannel.h"
-#include "webrtc/pc/mediacontroller.h"
-
-namespace cricket {
-
-class FakeMediaController : public webrtc::MediaControllerInterface {
- public:
- explicit FakeMediaController(cricket::ChannelManager* channel_manager,
- webrtc::Call* call)
- : channel_manager_(channel_manager), call_(call) {
- RTC_DCHECK(nullptr != channel_manager_);
- RTC_DCHECK(nullptr != call_);
- }
- ~FakeMediaController() override {}
- void Close() override {}
- webrtc::Call* call_w() override { return call_; }
- cricket::ChannelManager* channel_manager() const override {
- return channel_manager_;
- }
- const MediaConfig& config() const override { return media_config_; }
-
- private:
- const MediaConfig media_config_ = MediaConfig();
- cricket::ChannelManager* channel_manager_;
- webrtc::Call* call_;
-};
-} // namespace cricket
-#endif // WEBRTC_PC_FAKEMEDIACONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698