OLD | NEW |
---|---|
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_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 void OnSubscribeToDeviceChangeNotifications( | 100 void OnSubscribeToDeviceChangeNotifications( |
101 int render_frame_id, | 101 int render_frame_id, |
102 const url::Origin& security_origin); | 102 const url::Origin& security_origin); |
103 | 103 |
104 void OnCancelDeviceChangeNotifications(int render_frame_id); | 104 void OnCancelDeviceChangeNotifications(int render_frame_id); |
105 | 105 |
106 void StoreRequest(int render_frame_id, | 106 void StoreRequest(int render_frame_id, |
107 int page_request_id, | 107 int page_request_id, |
108 const std::string& label); | 108 const std::string& label); |
109 | 109 |
110 // IPC message: Set if the video capturing is secure. | |
nasko
2016/05/11 16:42:56
nit: IPC message handler
xjz
2016/05/11 18:07:23
Done.
| |
111 void OnSetCapturingLinkSecured(int session_id, | |
112 content::MediaStreamType type, | |
113 bool is_secure); | |
114 | |
110 std::unique_ptr<MediaStreamUIProxy> CreateMediaStreamUIProxy(); | 115 std::unique_ptr<MediaStreamUIProxy> CreateMediaStreamUIProxy(); |
111 void HandleCheckAccessResponse(std::unique_ptr<MediaStreamUIProxy> ui_proxy, | 116 void HandleCheckAccessResponse(std::unique_ptr<MediaStreamUIProxy> ui_proxy, |
112 int render_frame_id, | 117 int render_frame_id, |
113 bool have_access); | 118 bool have_access); |
114 | 119 |
115 int render_process_id_; | 120 int render_process_id_; |
116 ResourceContext::SaltCallback salt_callback_; | 121 ResourceContext::SaltCallback salt_callback_; |
117 MediaStreamManager* media_stream_manager_; | 122 MediaStreamManager* media_stream_manager_; |
118 | 123 |
119 struct DeviceChangeSubscriberInfo { | 124 struct DeviceChangeSubscriberInfo { |
120 int render_frame_id; | 125 int render_frame_id; |
121 url::Origin security_origin; | 126 url::Origin security_origin; |
122 }; | 127 }; |
123 std::vector<DeviceChangeSubscriberInfo> device_change_subscribers_; | 128 std::vector<DeviceChangeSubscriberInfo> device_change_subscribers_; |
124 bool use_fake_ui_; | 129 bool use_fake_ui_; |
125 | 130 |
126 base::WeakPtrFactory<MediaStreamDispatcherHost> weak_factory_; | 131 base::WeakPtrFactory<MediaStreamDispatcherHost> weak_factory_; |
127 | 132 |
128 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); | 133 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); |
129 }; | 134 }; |
130 | 135 |
131 } // namespace content | 136 } // namespace content |
132 | 137 |
133 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 138 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
OLD | NEW |