Index: chrome/browser/media/router/media_source.h |
diff --git a/chrome/browser/media/router/media_source.h b/chrome/browser/media/router/media_source.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..05f9aea299e62fef7ab0b678c279fb1348163f7c |
--- /dev/null |
+++ b/chrome/browser/media/router/media_source.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2014 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 CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_ |
+#define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_ |
+ |
+#include <string> |
+ |
+namespace media_router { |
+ |
+typedef std::string MediaSource; |
+ |
+// Returns MediaSource URI depending on the type of source. |
+MediaSource ForTabMediaSource(int tab_id); |
+MediaSource ForDesktopMediaSource(); |
+MediaSource ForDialAppMediaSource(const std::string& app_name); |
+MediaSource ForCastAppMediaSource(const std::string& app_name); |
+MediaSource ForPresentationUrl(const std::string& presentation_url); |
+ |
+bool IsMirroringMediaSource(const MediaSource& source); |
+ |
+} // namespace media_router |
+ |
+#endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_ |