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

Unified Diff: content/renderer/media/rtc_media_constraints.h

Issue 1729683002: Remove old-style constraints from Chrome internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Complete the interface change Created 4 years, 9 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: content/renderer/media/rtc_media_constraints.h
diff --git a/content/renderer/media/rtc_media_constraints.h b/content/renderer/media/rtc_media_constraints.h
deleted file mode 100644
index 8aff14566bbaa41ab8ea01507b5e149b57d147e6..0000000000000000000000000000000000000000
--- a/content/renderer/media/rtc_media_constraints.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 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_RENDERER_MEDIA_RTC_MEDIA_CONSTRAINTS_H_
-#define CONTENT_RENDERER_MEDIA_RTC_MEDIA_CONSTRAINTS_H_
-
-#include "base/compiler_specific.h"
-#include "content/common/content_export.h"
-#include "third_party/webrtc/api/mediaconstraintsinterface.h"
-
-namespace blink {
-class WebMediaConstraints;
-}
-
-namespace content {
-
-// RTCMediaConstraints acts as a glue layer between WebKits MediaConstraints and
-// libjingle webrtc::MediaConstraintsInterface.
-// Constraints are used by PeerConnection and getUserMedia API calls.
-class CONTENT_EXPORT RTCMediaConstraints
- : public NON_EXPORTED_BASE(webrtc::MediaConstraintsInterface) {
- public:
- RTCMediaConstraints();
- explicit RTCMediaConstraints(
- const blink::WebMediaConstraints& constraints);
- ~RTCMediaConstraints() override;
- const Constraints& GetMandatory() const override;
- const Constraints& GetOptional() const override;
- // Adds a mandatory constraint, optionally overriding an existing one.
- // If the constraint is already set and |override_if_exists| is false,
- // the function will return false, otherwise true.
- bool AddMandatory(const std::string& key, const std::string& value,
- bool override_if_exists);
- // As above, but against the optional constraints.
- bool AddOptional(const std::string& key, const std::string& value,
- bool override_if_exists);
-
- protected:
- bool AddConstraint(Constraints* constraints,
- const std::string& key,
- const std::string& value,
- bool override_if_exists);
- Constraints mandatory_;
- Constraints optional_;
-};
-
-} // namespace content
-
-
-#endif // CONTENT_RENDERER_MEDIA_RTC_MEDIA_CONSTRAINTS_H_
« no previous file with comments | « content/renderer/media/peer_connection_tracker_unittest.cc ('k') | content/renderer/media/rtc_media_constraints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698