OLD | NEW |
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 #include "content/browser/renderer_host/media/media_stream_manager.h" | 5 #include "content/browser/renderer_host/media/media_stream_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string.h> |
9 | 10 |
10 #include <cctype> | 11 #include <cctype> |
11 #include <list> | 12 #include <list> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "base/bind.h" | 15 #include "base/bind.h" |
15 #include "base/command_line.h" | 16 #include "base/command_line.h" |
16 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
17 #include "base/logging.h" | 18 #include "base/logging.h" |
18 #include "base/macros.h" | 19 #include "base/macros.h" |
(...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2072 const std::string& device_guid, | 2073 const std::string& device_guid, |
2073 const std::string& raw_unique_id) { | 2074 const std::string& raw_unique_id) { |
2074 DCHECK(security_origin.is_valid()); | 2075 DCHECK(security_origin.is_valid()); |
2075 DCHECK(!raw_unique_id.empty()); | 2076 DCHECK(!raw_unique_id.empty()); |
2076 std::string guid_from_raw_device_id = | 2077 std::string guid_from_raw_device_id = |
2077 GetHMACForMediaDeviceID(sc, security_origin, raw_unique_id); | 2078 GetHMACForMediaDeviceID(sc, security_origin, raw_unique_id); |
2078 return guid_from_raw_device_id == device_guid; | 2079 return guid_from_raw_device_id == device_guid; |
2079 } | 2080 } |
2080 | 2081 |
2081 } // namespace content | 2082 } // namespace content |
OLD | NEW |