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

Unified Diff: chrome/browser/media/desktop_capture_access_handler.h

Issue 1095393004: Refactor: Make MediaCaptureDevicesDispatcher have pluggable handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 5 years, 8 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/media/desktop_capture_access_handler.h
diff --git a/chrome/browser/media/desktop_capture_access_handler.h b/chrome/browser/media/desktop_capture_access_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..afb9decfa02d65e376bf3cff70c980f08850cd09
--- /dev/null
+++ b/chrome/browser/media/desktop_capture_access_handler.h
@@ -0,0 +1,33 @@
+// 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_DESKTOP_CAPTURE_ACCESS_HANDLER_H_
+#define CHROME_BROWSER_MEDIA_DESKTOP_CAPTURE_ACCESS_HANDLER_H_
+
+#include "chrome/browser/media/media_access_handler.h"
+
+class DesktopStreamsRegistry;
+
+class DesktopCaptureAccessHandler : public MediaAccessHandler {
+ public:
+ DesktopCaptureAccessHandler();
+ ~DesktopCaptureAccessHandler() override;
+
+ // MediaAccessHandler implementation.
+ bool SupportsRequest(const content::MediaStreamRequest& request,
+ const extensions::Extension* extension) override;
+ void HandleRequest(content::WebContents* web_contents,
+ const content::MediaStreamRequest& request,
+ const content::MediaResponseCallback& callback,
+ const extensions::Extension* extension) override;
+
+ private:
+ void ProcessScreenCaptureAccessRequest(
+ content::WebContents* web_contents,
+ const content::MediaStreamRequest& request,
+ const content::MediaResponseCallback& callback,
+ const extensions::Extension* extension);
+};
+
+#endif // CHROME_BROWSER_MEDIA_DESKTOP_CAPTURE_ACCESS_HANDLER_H_
« no previous file with comments | « no previous file | chrome/browser/media/desktop_capture_access_handler.cc » ('j') | chrome/browser/media/media_access_handler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698