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

Side by Side Diff: chrome/browser/media/media_capture_devices_dispatcher.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 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 (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 #ifndef CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ 6 #define CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 DesktopStreamsRegistry* GetDesktopStreamsRegistry(); 142 DesktopStreamsRegistry* GetDesktopStreamsRegistry();
143 143
144 bool IsDesktopCaptureInProgress(); 144 bool IsDesktopCaptureInProgress();
145 145
146 // Only for testing. 146 // Only for testing.
147 void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices); 147 void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices);
148 void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices); 148 void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices);
149 149
150 private: 150 private:
151 friend struct DefaultSingletonTraits<MediaCaptureDevicesDispatcher>; 151 friend struct base::DefaultSingletonTraits<MediaCaptureDevicesDispatcher>;
152 152
153 MediaCaptureDevicesDispatcher(); 153 MediaCaptureDevicesDispatcher();
154 ~MediaCaptureDevicesDispatcher() override; 154 ~MediaCaptureDevicesDispatcher() override;
155 155
156 // Called by the MediaObserver() functions, executed on UI thread. 156 // Called by the MediaObserver() functions, executed on UI thread.
157 void NotifyAudioDevicesChangedOnUIThread(); 157 void NotifyAudioDevicesChangedOnUIThread();
158 void NotifyVideoDevicesChangedOnUIThread(); 158 void NotifyVideoDevicesChangedOnUIThread();
159 void UpdateMediaRequestStateOnUIThread( 159 void UpdateMediaRequestStateOnUIThread(
160 int render_process_id, 160 int render_process_id,
161 int render_frame_id, 161 int render_frame_id,
(...skipping 20 matching lines...) Expand all
182 182
183 scoped_ptr<DesktopStreamsRegistry> desktop_streams_registry_; 183 scoped_ptr<DesktopStreamsRegistry> desktop_streams_registry_;
184 184
185 // Handlers for processing media access requests. 185 // Handlers for processing media access requests.
186 ScopedVector<MediaAccessHandler> media_access_handlers_; 186 ScopedVector<MediaAccessHandler> media_access_handlers_;
187 187
188 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); 188 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher);
189 }; 189 };
190 190
191 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ 191 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/mac/mac_startup_profiler.cc ('k') | chrome/browser/media/media_capture_devices_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698