OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/media/desktop_streams_registry.h" | 5 #include "chrome/browser/media/webrtc/desktop_streams_registry.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "crypto/random.h" | 12 #include "crypto/random.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 return result; | 82 return result; |
83 } | 83 } |
84 | 84 |
85 void DesktopStreamsRegistry::CleanupStream(const std::string& id) { | 85 void DesktopStreamsRegistry::CleanupStream(const std::string& id) { |
86 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 86 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
87 approved_streams_.erase(id); | 87 approved_streams_.erase(id); |
88 } | 88 } |
89 | 89 |
90 DesktopStreamsRegistry::ApprovedDesktopMediaStream::ApprovedDesktopMediaStream() | 90 DesktopStreamsRegistry::ApprovedDesktopMediaStream::ApprovedDesktopMediaStream() |
91 : render_process_id(-1), render_frame_id(-1) {} | 91 : render_process_id(-1), render_frame_id(-1) {} |
OLD | NEW |