| 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_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ | 6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 // Public methods to be called by MediaStreamInfoBarDelegate; | 67 // Public methods to be called by MediaStreamInfoBarDelegate; |
| 68 bool HasAudio() const; | 68 bool HasAudio() const; |
| 69 bool HasVideo() const; | 69 bool HasVideo() const; |
| 70 const std::string& GetSecurityOriginSpec() const; | 70 const std::string& GetSecurityOriginSpec() const; |
| 71 void Accept(bool update_content_setting); | 71 void Accept(bool update_content_setting); |
| 72 void Deny(bool update_content_setting, | 72 void Deny(bool update_content_setting, |
| 73 content::MediaStreamRequestResult result); | 73 content::MediaStreamRequestResult result); |
| 74 | 74 |
| 75 // PermissionBubbleRequest: | 75 // PermissionBubbleRequest: |
| 76 virtual PermissionBubbleRequest::Type GetType() const OVERRIDE; |
| 76 virtual int GetIconID() const OVERRIDE; | 77 virtual int GetIconID() const OVERRIDE; |
| 77 virtual base::string16 GetMessageText() const OVERRIDE; | 78 virtual base::string16 GetMessageText() const OVERRIDE; |
| 78 virtual base::string16 GetMessageTextFragment() const OVERRIDE; | 79 virtual base::string16 GetMessageTextFragment() const OVERRIDE; |
| 79 virtual bool HasUserGesture() const OVERRIDE; | 80 virtual bool HasUserGesture() const OVERRIDE; |
| 80 virtual GURL GetRequestingHostname() const OVERRIDE; | 81 virtual GURL GetRequestingHostname() const OVERRIDE; |
| 81 virtual void PermissionGranted() OVERRIDE; | 82 virtual void PermissionGranted() OVERRIDE; |
| 82 virtual void PermissionDenied() OVERRIDE; | 83 virtual void PermissionDenied() OVERRIDE; |
| 83 virtual void Cancelled() OVERRIDE; | 84 virtual void Cancelled() OVERRIDE; |
| 84 virtual void RequestFinished() OVERRIDE; | 85 virtual void RequestFinished() OVERRIDE; |
| 85 | 86 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // passed to the tab specific content settings when the permissions have been | 166 // passed to the tab specific content settings when the permissions have been |
| 166 // resolved. Currently only used by MEDIA_DEVICE_AUDIO_CAPTURE and | 167 // resolved. Currently only used by MEDIA_DEVICE_AUDIO_CAPTURE and |
| 167 // MEDIA_DEVICE_VIDEO_CAPTURE since those are the only types that require | 168 // MEDIA_DEVICE_VIDEO_CAPTURE since those are the only types that require |
| 168 // updates in the settings. | 169 // updates in the settings. |
| 169 MediaStreamTypeSettingsMap request_permissions_; | 170 MediaStreamTypeSettingsMap request_permissions_; |
| 170 | 171 |
| 171 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController); | 172 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController); |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ | 175 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ |
| OLD | NEW |