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

Unified Diff: content/public/common/media_stream_request.cc

Issue 262763004: Per navigation sticky media permissions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move IsRequestAllowedByNavigationEntry to after IsDefaultMediaAccessBlocked Created 6 years, 7 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 | « content/public/common/media_stream_request.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/media_stream_request.cc
diff --git a/content/public/common/media_stream_request.cc b/content/public/common/media_stream_request.cc
index 4a4bf729fbacbf1dd93cdcf95df6372d2077329e..fa12fc8a537fa1236ea64ebe7ec6d119e2f897da 100644
--- a/content/public/common/media_stream_request.cc
+++ b/content/public/common/media_stream_request.cc
@@ -67,6 +67,22 @@ bool MediaStreamDevice::IsEqual(const MediaStreamDevice& second) const {
input.channel_layout == input_second.channel_layout;
}
+MediaStreamDevices::MediaStreamDevices() {}
+
+MediaStreamDevices::MediaStreamDevices(size_t count,
+ const MediaStreamDevice& value)
+ : std::vector<MediaStreamDevice>(count, value) {
+}
+
+const MediaStreamDevice* MediaStreamDevices::FindById(
+ const std::string& device_id) const {
+ for (const_iterator iter = begin(); iter != end(); ++iter) {
+ if (iter->id == device_id)
+ return &(*iter);
+ }
+ return NULL;
+}
+
MediaStreamRequest::MediaStreamRequest(
int render_process_id,
int render_view_id,
« no previous file with comments | « content/public/common/media_stream_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698