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

Side by Side Diff: content/renderer/media/media_stream_dispatcher_eventhandler.h

Issue 1943213002: Reland of Add support for device-change notifications to MediaStreamDispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use EXPECT_DEATH_IF_SUPPORTED instead of EXPECT_DEATH Created 4 years, 7 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 CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // A device has been opened. 40 // A device has been opened.
41 virtual void OnDeviceOpened( 41 virtual void OnDeviceOpened(
42 int request_id, 42 int request_id,
43 const std::string& label, 43 const std::string& label,
44 const StreamDeviceInfo& device_info) = 0; 44 const StreamDeviceInfo& device_info) = 0;
45 45
46 // Failed to open the device. 46 // Failed to open the device.
47 virtual void OnDeviceOpenFailed(int request_id) = 0; 47 virtual void OnDeviceOpenFailed(int request_id) = 0;
48 48
49 virtual void OnDevicesChanged() = 0;
50
49 protected: 51 protected:
50 virtual ~MediaStreamDispatcherEventHandler() {} 52 virtual ~MediaStreamDispatcherEventHandler() {}
51 }; 53 };
52 54
53 } // namespace content 55 } // namespace content
54 56
55 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ 57 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_dispatcher.cc ('k') | content/renderer/media/media_stream_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698