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

Unified Diff: chrome/browser/extensions/api/tabs/windows_util.h

Issue 21022018: Sessions API - previously Session Restore API. Supports restoring currently open foreign windows an… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: 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 32%
copy from content/renderer/media/media_stream_registry_interface.h
copy to chrome/browser/extensions/api/tabs/windows_util.h
index af4c26a4e78b421595c058cbedd5de802a201d1e..6fabc502319dda5f1e339a890387ddf858a23770 100644
--- a/content/renderer/media/media_stream_registry_interface.h
+++ b/chrome/browser/extensions/api/tabs/windows_util.h
@@ -2,24 +2,21 @@
// 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 {
not at google - send to devlin 2013/08/15 20:16:24 git being silly again.
- public:
- virtual WebKit::WebMediaStream GetMediaStream(const std::string& url) = 0;
+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__

Powered by Google App Engine
This is Rietveld 408576698