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

Unified Diff: chrome/browser/media/webrtc/media_permission.h

Issue 2759593002: Remove c/b/media/webrtc/media_permission.{h,cc} (Closed)
Patch Set: Remove c/b/media/webrtc/media_permission.{h,cc} Created 3 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/media/webrtc/media_permission.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc/media_permission.h
diff --git a/chrome/browser/media/webrtc/media_permission.h b/chrome/browser/media/webrtc/media_permission.h
deleted file mode 100644
index ef7a883965ea85ae9b190da7a6159b3080706c71..0000000000000000000000000000000000000000
--- a/chrome/browser/media/webrtc/media_permission.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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_WEBRTC_MEDIA_PERMISSION_H_
-#define CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_PERMISSION_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "components/content_settings/core/common/content_settings.h"
-#include "components/content_settings/core/common/content_settings_types.h"
-#include "content/public/common/media_stream_request.h"
-#include "url/gurl.h"
-
-class Profile;
-
-namespace content {
-class WebContents;
-}
-
-// Represents a permission for microphone/camera access.
-class MediaPermission {
- public:
- MediaPermission(ContentSettingsType content_type,
- const GURL& requesting_origin,
- const GURL& embedding_origin,
- Profile* profile,
- content::WebContents* web_contents);
-
- // Returns the status of the permission. If the setting is
- // CONTENT_SETTING_BLOCK, |denial_reason| will output the reason for it being
- // blocked.
- ContentSetting GetPermissionStatus(
- content::MediaStreamRequestResult* denial_reason) const;
-
- private:
- bool HasAvailableDevices(const std::string& device_id) const;
-
- const ContentSettingsType content_type_;
- const GURL requesting_origin_;
- const GURL embedding_origin_;
- const std::string device_id_;
- Profile* const profile_;
- content::WebContents* const web_contents_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaPermission);
-};
-
-#endif // CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_PERMISSION_H_
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/media/webrtc/media_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698