| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_UI_WEBUI_SETTINGS_SETTINGS_MEDIA_DEVICES_SELECTION_HANDLE
R_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MEDIA_DEVICES_SELECTION_HANDLE
R_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MEDIA_DEVICES_SELECTION_HANDLE
R_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MEDIA_DEVICES_SELECTION_HANDLE
R_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/scoped_observer.h" | 9 #include "base/scoped_observer.h" |
| 10 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 10 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
| 11 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 11 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| 12 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
| 13 | 13 |
| 14 namespace settings { | 14 namespace settings { |
| 15 | 15 |
| 16 // Handler for media devices selection in content settings. | 16 // Handler for media devices selection in content settings. |
| 17 class MediaDevicesSelectionHandler | 17 class MediaDevicesSelectionHandler |
| 18 : public MediaCaptureDevicesDispatcher::Observer, | 18 : public MediaCaptureDevicesDispatcher::Observer, |
| 19 public SettingsPageUIHandler { | 19 public SettingsPageUIHandler { |
| 20 public: | 20 public: |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 ScopedObserver<MediaCaptureDevicesDispatcher, | 56 ScopedObserver<MediaCaptureDevicesDispatcher, |
| 57 MediaCaptureDevicesDispatcher::Observer> observer_; | 57 MediaCaptureDevicesDispatcher::Observer> observer_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(MediaDevicesSelectionHandler); | 59 DISALLOW_COPY_AND_ASSIGN(MediaDevicesSelectionHandler); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace settings | 62 } // namespace settings |
| 63 | 63 |
| 64 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MEDIA_DEVICES_SELECTION_HAN
DLER_H_ | 64 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MEDIA_DEVICES_SELECTION_HAN
DLER_H_ |
| OLD | NEW |