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

Side by Side Diff: chrome/browser/media/media_stream_devices_controller.h

Issue 180633008: Add different error codes for getUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 9 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 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Public method to be called before creating the MediaStreamInfoBarDelegate. 62 // Public method to be called before creating the MediaStreamInfoBarDelegate.
63 // This function will check the content settings exceptions and take the 63 // This function will check the content settings exceptions and take the
64 // corresponding action on exception which matches the request. 64 // corresponding action on exception which matches the request.
65 bool DismissInfoBarAndTakeActionOnSettings(); 65 bool DismissInfoBarAndTakeActionOnSettings();
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 74
74 // PermissionBubbleRequest: 75 // PermissionBubbleRequest:
75 virtual int GetIconID() const OVERRIDE; 76 virtual int GetIconID() const OVERRIDE;
76 virtual base::string16 GetMessageText() const OVERRIDE; 77 virtual base::string16 GetMessageText() const OVERRIDE;
77 virtual base::string16 GetMessageTextFragment() const OVERRIDE; 78 virtual base::string16 GetMessageTextFragment() const OVERRIDE;
78 virtual bool HasUserGesture() const OVERRIDE; 79 virtual bool HasUserGesture() const OVERRIDE;
79 virtual GURL GetRequestingHostname() const OVERRIDE; 80 virtual GURL GetRequestingHostname() const OVERRIDE;
80 virtual void PermissionGranted() OVERRIDE; 81 virtual void PermissionGranted() OVERRIDE;
81 virtual void PermissionDenied() OVERRIDE; 82 virtual void PermissionDenied() OVERRIDE;
82 virtual void Cancelled() OVERRIDE; 83 virtual void Cancelled() OVERRIDE;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // passed to the tab specific content settings when the permissions have been 161 // passed to the tab specific content settings when the permissions have been
161 // resolved. Currently only used by MEDIA_DEVICE_AUDIO_CAPTURE and 162 // resolved. Currently only used by MEDIA_DEVICE_AUDIO_CAPTURE and
162 // MEDIA_DEVICE_VIDEO_CAPTURE since those are the only types that require 163 // MEDIA_DEVICE_VIDEO_CAPTURE since those are the only types that require
163 // updates in the settings. 164 // updates in the settings.
164 MediaStreamTypeSettingsMap request_permissions_; 165 MediaStreamTypeSettingsMap request_permissions_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController); 167 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController);
167 }; 168 };
168 169
169 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 170 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/media_capture_devices_dispatcher.cc ('k') | chrome/browser/media/media_stream_devices_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698