| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_PERMISSION_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_PERMISSION_H_ |
| 6 #define CHROME_BROWSER_MEDIA_MEDIA_PERMISSION_H_ | 6 #define CHROME_BROWSER_MEDIA_MEDIA_PERMISSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "components/content_settings/core/common/content_settings.h" | 11 #include "components/content_settings/core/common/content_settings.h" |
| 11 #include "components/content_settings/core/common/content_settings_types.h" | 12 #include "components/content_settings/core/common/content_settings_types.h" |
| 12 #include "content/public/common/media_stream_request.h" | 13 #include "content/public/common/media_stream_request.h" |
| 13 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 14 | 15 |
| 15 class MediaStreamDevicePermissionContext; | 16 class MediaStreamDevicePermissionContext; |
| 16 class Profile; | 17 class Profile; |
| 17 | 18 |
| 18 // Represents a permission for microphone/camera access. | 19 // Represents a permission for microphone/camera access. |
| 19 class MediaPermission { | 20 class MediaPermission { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 48 bool is_insecure_pepper_request_; | 49 bool is_insecure_pepper_request_; |
| 49 const GURL requesting_origin_; | 50 const GURL requesting_origin_; |
| 50 const GURL embedding_origin_; | 51 const GURL embedding_origin_; |
| 51 const std::string device_id_; | 52 const std::string device_id_; |
| 52 Profile* const profile_; | 53 Profile* const profile_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(MediaPermission); | 55 DISALLOW_COPY_AND_ASSIGN(MediaPermission); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 #endif // CHROME_BROWSER_MEDIA_MEDIA_PERMISSION_H_ | 58 #endif // CHROME_BROWSER_MEDIA_MEDIA_PERMISSION_H_ |
| OLD | NEW |