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 CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
204 } | 204 } |
205 | 205 |
206 const std::string& media_stream_requested_audio_device() const { | 206 const std::string& media_stream_requested_audio_device() const { |
207 return media_stream_requested_audio_device_; | 207 return media_stream_requested_audio_device_; |
208 } | 208 } |
209 | 209 |
210 const std::string& media_stream_requested_video_device() const { | 210 const std::string& media_stream_requested_video_device() const { |
211 return media_stream_requested_video_device_; | 211 return media_stream_requested_video_device_; |
212 } | 212 } |
213 | 213 |
214 const std::string& media_stream_selected_audio_device() const { | |
215 return media_stream_selected_audio_device_; | |
216 } | |
217 | |
218 const std::string& media_stream_selected_video_device() const { | |
219 return media_stream_selected_video_device_; | |
220 } | |
221 | |
214 // Returns the state of the camera and microphone usage. | 222 // Returns the state of the camera and microphone usage. |
215 MicrophoneCameraState GetMicrophoneCameraState() const; | 223 MicrophoneCameraState GetMicrophoneCameraState() const; |
216 | 224 |
225 // Returns whether the state of the camera and microphone settings have | |
Peter Kasting
2014/09/22 23:11:23
Nit: Remove "the state of", or else change "have"
robwu
2014/09/24 00:03:04
Done.
| |
226 // changed since the last media stream request. | |
227 bool IsMicrophoneCameraStateChanged() const; | |
228 | |
217 // Returns the ContentSettingsUsagesState that controls the | 229 // Returns the ContentSettingsUsagesState that controls the |
218 // geolocation API usage on this page. | 230 // geolocation API usage on this page. |
219 const ContentSettingsUsagesState& geolocation_usages_state() const { | 231 const ContentSettingsUsagesState& geolocation_usages_state() const { |
220 return geolocation_usages_state_; | 232 return geolocation_usages_state_; |
221 } | 233 } |
222 | 234 |
223 // Returns the ContentSettingsUsageState that controls the MIDI usage on | 235 // Returns the ContentSettingsUsageState that controls the MIDI usage on |
224 // this page. | 236 // this page. |
225 const ContentSettingsUsagesState& midi_usages_state() const { | 237 const ContentSettingsUsagesState& midi_usages_state() const { |
226 return midi_usages_state_; | 238 return midi_usages_state_; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
406 ContentSetting pending_protocol_handler_setting_; | 418 ContentSetting pending_protocol_handler_setting_; |
407 | 419 |
408 // Stores whether the user can load blocked plugins on this page. | 420 // Stores whether the user can load blocked plugins on this page. |
409 bool load_plugins_link_enabled_; | 421 bool load_plugins_link_enabled_; |
410 | 422 |
411 // The origin of the media stream request. Note that we only support handling | 423 // The origin of the media stream request. Note that we only support handling |
412 // settings for one request per tab. The latest request's origin will be | 424 // settings for one request per tab. The latest request's origin will be |
413 // stored here. http://crbug.com/259794 | 425 // stored here. http://crbug.com/259794 |
414 GURL media_stream_access_origin_; | 426 GURL media_stream_access_origin_; |
415 | 427 |
428 // The microphone and camera state at the last media stream request. | |
429 MicrophoneCameraState microphone_camera_state_; | |
430 // The most selected devices at the the of the media stream request. | |
Peter Kasting
2014/09/22 23:11:23
Nit: "most selected"?
robwu
2014/09/24 00:03:04
Done.
| |
431 std::string media_stream_selected_audio_device_; | |
432 std::string media_stream_selected_video_device_; | |
433 | |
416 // The devices to be displayed in the media bubble when the media stream | 434 // The devices to be displayed in the media bubble when the media stream |
417 // request is requesting certain specific devices. | 435 // request is requesting certain specific devices. |
418 std::string media_stream_requested_audio_device_; | 436 std::string media_stream_requested_audio_device_; |
419 std::string media_stream_requested_video_device_; | 437 std::string media_stream_requested_video_device_; |
420 | 438 |
421 // Observer to watch for content settings changed. | 439 // Observer to watch for content settings changed. |
422 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; | 440 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; |
423 | 441 |
424 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 442 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
425 }; | 443 }; |
426 | 444 |
427 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 445 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
OLD | NEW |