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

Side by Side Diff: chrome/browser/media/webrtc/desktop_streams_registry.h

Issue 2307083002: Cleanup: move WebRTC related files from chrome/browser/media to chrome/browser/media/webrtc/ (Closed)
Patch Set: Removed file wrongly resuscitated during rebase Created 4 years, 3 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 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 #ifndef CHROME_BROWSER_MEDIA_DESKTOP_STREAMS_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_STREAMS_REGISTRY_H_
6 #define CHROME_BROWSER_MEDIA_DESKTOP_STREAMS_REGISTRY_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_STREAMS_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/media/desktop_media_list.h" 12 #include "chrome/browser/media/webrtc/desktop_media_list.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 // DesktopStreamsRegistry is used to store accepted desktop media streams for 15 // DesktopStreamsRegistry is used to store accepted desktop media streams for
16 // Desktop Capture API. Single instance of this class is created per browser in 16 // Desktop Capture API. Single instance of this class is created per browser in
17 // MediaCaptureDevicesDispatcher. 17 // MediaCaptureDevicesDispatcher.
18 class DesktopStreamsRegistry { 18 class DesktopStreamsRegistry {
19 public: 19 public:
20 DesktopStreamsRegistry(); 20 DesktopStreamsRegistry();
21 ~DesktopStreamsRegistry(); 21 ~DesktopStreamsRegistry();
22 22
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 typedef std::map<std::string, ApprovedDesktopMediaStream> StreamsMap; 55 typedef std::map<std::string, ApprovedDesktopMediaStream> StreamsMap;
56 56
57 // Helper function that removes an expired stream from the registry. 57 // Helper function that removes an expired stream from the registry.
58 void CleanupStream(const std::string& id); 58 void CleanupStream(const std::string& id);
59 59
60 StreamsMap approved_streams_; 60 StreamsMap approved_streams_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(DesktopStreamsRegistry); 62 DISALLOW_COPY_AND_ASSIGN(DesktopStreamsRegistry);
63 }; 63 };
64 64
65 #endif // CHROME_BROWSER_MEDIA_DESKTOP_STREAMS_REGISTRY_H_ 65 #endif // CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_STREAMS_REGISTRY_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc/desktop_media_picker.h ('k') | chrome/browser/media/webrtc/desktop_streams_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698