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

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

Issue 11446042: Make sure that all OpenDevice requests are scrutinized against the audio and video policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT. Created 8 years 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 // MediaStreamUIController is used to decide which of the available capture 5 // MediaStreamUIController is used to decide which of the available capture
6 // device to use as well as getting user permission to use the capture device. 6 // device to use as well as getting user permission to use the capture device.
7 // There will be one instance of MediaStreamDeviceSettings handling all 7 // There will be one instance of MediaStreamDeviceSettings handling all
8 // requests. 8 // requests.
9 9
10 // Expected call flow: 10 // Expected call flow:
(...skipping 28 matching lines...) Expand all
39 explicit MediaStreamUIController(SettingsRequester* requester); 39 explicit MediaStreamUIController(SettingsRequester* requester);
40 virtual ~MediaStreamUIController(); 40 virtual ~MediaStreamUIController();
41 41
42 // Called when a new request for the capture device access is made. 42 // Called when a new request for the capture device access is made.
43 // Users are responsbile for cancel the pending request if they don't wait 43 // Users are responsbile for cancel the pending request if they don't wait
44 // for the result from the UI. 44 // for the result from the UI.
45 void MakeUIRequest(const std::string& label, 45 void MakeUIRequest(const std::string& label,
46 int render_process_id, 46 int render_process_id,
47 int render_view_id, 47 int render_view_id,
48 const StreamOptions& stream_components, 48 const StreamOptions& stream_components,
49 const GURL& security_origin); 49 const GURL& security_origin,
50 MediaStreamRequestType request_type);
50 51
51 // Called to cancel a pending UI request of capture device access when the 52 // Called to cancel a pending UI request of capture device access when the
52 // user has no action for the media stream InfoBar. 53 // user has no action for the media stream InfoBar.
53 void CancelUIRequest(const std::string& label); 54 void CancelUIRequest(const std::string& label);
54 55
55 // Called to pass in an array of available devices for a request represented 56 // Called to pass in an array of available devices for a request represented
56 // by |label|. There could be multiple calls for a request. 57 // by |label|. There could be multiple calls for a request.
57 // TODO(xians): use the monitor to get a up-to-date device list and remove 58 // TODO(xians): use the monitor to get a up-to-date device list and remove
58 // this API. 59 // this API.
59 void AddAvailableDevicesToRequest( 60 void AddAvailableDevicesToRequest(
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool use_fake_ui_; 111 bool use_fake_ui_;
111 112
112 base::WeakPtrFactory<MediaStreamUIController> weak_ptr_factory_; 113 base::WeakPtrFactory<MediaStreamUIController> weak_ptr_factory_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(MediaStreamUIController); 115 DISALLOW_COPY_AND_ASSIGN(MediaStreamUIController);
115 }; 116 };
116 117
117 } // namespace content 118 } // namespace content
118 119
119 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_UI_CONTROLLER_H_ 120 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_UI_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698