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

Side by Side Diff: content/browser/renderer_host/media/media_stream_manager.h

Issue 1873293002: Report if video capturing meets output protection requirement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // MediaStreamManager is used to open/enumerate media capture devices (video 5 // MediaStreamManager is used to open/enumerate media capture devices (video
6 // supported now). Call flow: 6 // supported now). Call flow:
7 // 1. GenerateStream is called when a render process wants to use a capture 7 // 1. GenerateStream is called when a render process wants to use a capture
8 // device. 8 // device.
9 // 2. MediaStreamManager will ask MediaStreamUIController for permission to 9 // 2. MediaStreamManager will ask MediaStreamUIController for permission to
10 // use devices and for which device to use. 10 // use devices and for which device to use.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 const std::string& raw_unique_id); 230 const std::string& raw_unique_id);
231 231
232 // Convenience method to check if |device_guid| is an HMAC of 232 // Convenience method to check if |device_guid| is an HMAC of
233 // |raw_device_id| for |security_origin|. 233 // |raw_device_id| for |security_origin|.
234 static bool DoesMediaDeviceIDMatchHMAC( 234 static bool DoesMediaDeviceIDMatchHMAC(
235 const ResourceContext::SaltCallback& sc, 235 const ResourceContext::SaltCallback& sc,
236 const GURL& security_origin, 236 const GURL& security_origin,
237 const std::string& device_guid, 237 const std::string& device_guid,
238 const std::string& raw_unique_id); 238 const std::string& raw_unique_id);
239 239
240 void SetCapturingLinkSecured(bool is_secure);
241
240 private: 242 private:
241 // Contains all data needed to keep track of requests. 243 // Contains all data needed to keep track of requests.
242 class DeviceRequest; 244 class DeviceRequest;
243 245
244 // Cache enumerated device list. 246 // Cache enumerated device list.
245 struct EnumerationCache { 247 struct EnumerationCache {
246 EnumerationCache(); 248 EnumerationCache();
247 ~EnumerationCache(); 249 ~EnumerationCache();
248 250
249 bool valid; 251 bool valid;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 437
436 // Maps render process hosts to log callbacks. Used on the IO thread. 438 // Maps render process hosts to log callbacks. Used on the IO thread.
437 std::map<int, base::Callback<void(const std::string&)>> log_callbacks_; 439 std::map<int, base::Callback<void(const std::string&)>> log_callbacks_;
438 440
439 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); 441 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager);
440 }; 442 };
441 443
442 } // namespace content 444 } // namespace content
443 445
444 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ 446 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698