Index: chrome/browser/media/tab_capture_access_handler.h |
diff --git a/chrome/browser/media/tab_capture_access_handler.h b/chrome/browser/media/tab_capture_access_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8c526a71716ed4011489dc2f9a4ba169c03eab7c |
--- /dev/null |
+++ b/chrome/browser/media/tab_capture_access_handler.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2015 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_TAB_CAPTURE_ACCESS_HANDLER_H_ |
+#define CHROME_BROWSER_MEDIA_TAB_CAPTURE_ACCESS_HANDLER_H_ |
+ |
+#include "chrome/browser/media/media_access_handler.h" |
+ |
+class MediaStreamCaptureIndicator; |
+ |
+// MediaAccessHandler for TabCapture API. |
+class TabCaptureAccessHandler : public MediaAccessHandler { |
+ public: |
+ TabCaptureAccessHandler(); |
+ ~TabCaptureAccessHandler() override; |
+ |
+ // MediaAccessHandler implementation. |
+ bool SupportsStreamType(const content::MediaStreamType type, |
+ const extensions::Extension* extension) override; |
+ bool CheckMediaAccessPermission( |
+ content::WebContents* web_contents, |
+ const GURL& security_origin, |
+ content::MediaStreamType type, |
+ const extensions::Extension* extension) override; |
+ void HandleRequest(content::WebContents* web_contents, |
+ const content::MediaStreamRequest& request, |
+ const content::MediaResponseCallback& callback, |
+ const extensions::Extension* extension) override; |
+}; |
+ |
+#endif // CHROME_BROWSER_MEDIA_TAB_CAPTURE_ACCESS_HANDLER_H_ |