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

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

Issue 323313003: Add flag in device enumeration request to control label clearing and don't clear for pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 | Annotate | Revision Log
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_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Cancel the request for a new media stream to be created. 50 // Cancel the request for a new media stream to be created.
51 virtual void CancelGenerateStream( 51 virtual void CancelGenerateStream(
52 int request_id, 52 int request_id,
53 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler); 53 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler);
54 54
55 // Stop a started device that has been requested by calling GenerateStream. 55 // Stop a started device that has been requested by calling GenerateStream.
56 virtual void StopStreamDevice(const StreamDeviceInfo& device_info); 56 virtual void StopStreamDevice(const StreamDeviceInfo& device_info);
57 57
58 // Request to enumerate devices. 58 // Request to enumerate devices.
59 // If |hide_labels_if_no_access| is true, labels will be empty in the
60 // response if permission has not been granted for the device type. This
61 // should normally be true.
59 virtual void EnumerateDevices( 62 virtual void EnumerateDevices(
60 int request_id, 63 int request_id,
61 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler, 64 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler,
62 MediaStreamType type, 65 MediaStreamType type,
63 const GURL& security_origin); 66 const GURL& security_origin,
67 bool hide_labels_if_no_access);
64 68
65 // Request to stop enumerating devices. 69 // Request to stop enumerating devices.
66 void StopEnumerateDevices( 70 void StopEnumerateDevices(
67 int request_id, 71 int request_id,
68 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler); 72 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler);
69 73
70 // Request to open a device. 74 // Request to open a device.
71 void OpenDevice( 75 void OpenDevice(
72 int request_id, 76 int request_id,
73 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler, 77 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // been canceled. 144 // been canceled.
141 typedef std::list<Request> RequestList; 145 typedef std::list<Request> RequestList;
142 RequestList requests_; 146 RequestList requests_;
143 147
144 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher); 148 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher);
145 }; 149 };
146 150
147 } // namespace content 151 } // namespace content
148 152
149 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ 153 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/media/media_stream_messages.h ('k') | content/renderer/media/media_stream_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698