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

Side by Side Diff: content/browser/renderer_host/media/media_stream_requester.h

Issue 2487133003: Remove dead code related to media device enumerations and monitoring. (Closed)
Patch Set: rebase Created 4 years, 1 month 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_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_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 16 matching lines...) Expand all
27 virtual void StreamGenerationFailed( 27 virtual void StreamGenerationFailed(
28 int render_frame_id, 28 int render_frame_id,
29 int page_request_id, 29 int page_request_id,
30 content::MediaStreamRequestResult result) = 0; 30 content::MediaStreamRequestResult result) = 0;
31 // Called if a device has been stopped by a user from UI or the device 31 // Called if a device has been stopped by a user from UI or the device
32 // has become unavailable. |render_frame_id| is the render frame that 32 // has become unavailable. |render_frame_id| is the render frame that
33 // requested the device and |label| is the label of the request. 33 // requested the device and |label| is the label of the request.
34 virtual void DeviceStopped(int render_frame_id, 34 virtual void DeviceStopped(int render_frame_id,
35 const std::string& label, 35 const std::string& label,
36 const StreamDeviceInfo& device) = 0; 36 const StreamDeviceInfo& device) = 0;
37 // Called as a reply of a successful call to EnumerateDevices.
38 virtual void DevicesEnumerated(int render_frame_id,
39 int page_request_id,
40 const std::string& label,
41 const StreamDeviceInfoArray& devices) = 0;
42 // Called as a reply of a successful call to OpenDevice. 37 // Called as a reply of a successful call to OpenDevice.
43 virtual void DeviceOpened(int render_frame_id, 38 virtual void DeviceOpened(int render_frame_id,
44 int page_request_id, 39 int page_request_id,
45 const std::string& label, 40 const std::string& label,
46 const StreamDeviceInfo& device_info) = 0; 41 const StreamDeviceInfo& device_info) = 0;
47 // Called when the set of media devices has changed, provided the
48 // MediaStreamRequester is subscribed and authorized to receive such messages.
49 virtual void DevicesChanged(MediaStreamType type) = 0;
50 42
51 protected: 43 protected:
52 virtual ~MediaStreamRequester() { 44 virtual ~MediaStreamRequester() {
53 } 45 }
54 }; 46 };
55 47
56 } // namespace content 48 } // namespace content
57 49
58 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_ 50 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_REQUESTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698