Index: chrome/browser/extensions/api/tabs/windows_util.h |
diff --git a/content/renderer/media/media_stream_registry_interface.h b/chrome/browser/extensions/api/tabs/windows_util.h |
similarity index 29% |
copy from content/renderer/media/media_stream_registry_interface.h |
copy to chrome/browser/extensions/api/tabs/windows_util.h |
index af4c26a4e78b421595c058cbedd5de802a201d1e..9b0fdd964d024ec074a98e5ab51c7ff234297db9 100644 |
--- a/content/renderer/media/media_stream_registry_interface.h |
+++ b/chrome/browser/extensions/api/tabs/windows_util.h |
@@ -2,24 +2,23 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_REGISTRY_INTERFACE_H_ |
-#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_REGISTRY_INTERFACE_H_ |
+#ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_WINDOWS_UTIL_H__ |
+#define CHROME_BROWSER_EXTENSIONS_API_TABS_WINDOWS_UTIL_H__ |
-#include <string> |
+class UIThreadExtensionFunction; |
-#include "third_party/WebKit/public/platform/WebMediaStream.h" |
+namespace extensions { |
+class WindowController; |
+} |
-namespace content { |
+namespace windows_util { |
-// Interface to get WebMediaStream from its url. |
-class MediaStreamRegistryInterface { |
- public: |
- virtual WebKit::WebMediaStream GetMediaStream(const std::string& url) = 0; |
+// Populates |controller| for given |window_id|. If the window is not found, |
+// returns false and sets UIThreadExtensionFunction error_. |
+bool GetWindowFromWindowID(UIThreadExtensionFunction* function, |
+ int window_id, |
+ extensions::WindowController** controller); |
- protected: |
- virtual ~MediaStreamRegistryInterface() {} |
-}; |
+} // namespace windows_util |
-} // namespace content |
- |
-#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_REGISTRY_INTERFACE_H_ |
+#endif // CHROME_BROWSER_EXTENSIONS_API_TABS_WINDOWS_UTIL_H__ |