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

Unified Diff: content/public/common/desktop_media_id.cc

Issue 100743003: Extend content::DesktopMediaID to allow Aura windows as capture sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « content/public/common/desktop_media_id.h ('k') | content/renderer/media/media_stream_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/desktop_media_id.cc
diff --git a/content/public/common/desktop_media_id.cc b/content/public/common/desktop_media_id.cc
deleted file mode 100644
index 82ebe9ca4d2185c822246a9b6f0f398381c0a26c..0000000000000000000000000000000000000000
--- a/content/public/common/desktop_media_id.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 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.
-
-#include "content/public/common/desktop_media_id.h"
-
-namespace content {
-
-// static
-DesktopMediaID DesktopMediaID::Parse(const std::string& str) {
- if (str == "screen")
- return DesktopMediaID(TYPE_SCREEN, 0);
-
- std::string window_prefix("window:");
- if (StartsWithASCII(str, window_prefix, true)) {
- int64 id;
- if (!base::StringToInt64(str.substr(window_prefix.size()), &id))
- return DesktopMediaID(TYPE_NONE, 0);
- return DesktopMediaID(TYPE_WINDOW, id);
- }
-
- return DesktopMediaID(TYPE_NONE, 0);
-}
-
-std::string DesktopMediaID::ToString() {
- switch (type) {
- case TYPE_NONE:
- NOTREACHED();
- return std::string();
-
- case TYPE_SCREEN:
- return "screen";
-
- case TYPE_WINDOW:
- return "window:" + base::Int64ToString(id);
- }
- NOTREACHED();
- return std::string();
-}
-
-} // namespace content
« no previous file with comments | « content/public/common/desktop_media_id.h ('k') | content/renderer/media/media_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698