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

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

Issue 2897223002: Fix message text for modal prompts when PermissionRequestManager enabled (Closed)
Patch Set: address comments Created 3 years, 6 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
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_WEBRTC_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICES_CONTROLLER_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICES_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 Request(Profile* profile, 45 Request(Profile* profile,
46 bool is_asking_for_audio, 46 bool is_asking_for_audio,
47 bool is_asking_for_video, 47 bool is_asking_for_video,
48 const GURL& security_origin, 48 const GURL& security_origin,
49 PromptAnsweredCallback prompt_answered_callback); 49 PromptAnsweredCallback prompt_answered_callback);
50 50
51 ~Request() override; 51 ~Request() override;
52 52
53 bool IsAskingForAudio() const; 53 bool IsAskingForAudio() const;
54 bool IsAskingForVideo() const; 54 bool IsAskingForVideo() const;
55 base::string16 GetMessageText() const;
56 55
57 // PermissionRequest: 56 // PermissionRequest:
58 IconId GetIconId() const override; 57 IconId GetIconId() const override;
58 #if defined(OS_ANDROID)
59 base::string16 GetMessageText() const override;
60 #endif
59 base::string16 GetMessageTextFragment() const override; 61 base::string16 GetMessageTextFragment() const override;
60 GURL GetOrigin() const override; 62 GURL GetOrigin() const override;
61 void PermissionGranted() override; 63 void PermissionGranted() override;
62 void PermissionDenied() override; 64 void PermissionDenied() override;
63 void Cancelled() override; 65 void Cancelled() override;
64 void RequestFinished() override; 66 void RequestFinished() override;
65 PermissionRequestType GetPermissionRequestType() const override; 67 PermissionRequestType GetPermissionRequestType() const override;
66 bool ShouldShowPersistenceToggle() const override; 68 bool ShouldShowPersistenceToggle() const override;
67 69
68 private: 70 private:
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // The callback that needs to be Run to notify WebRTC of whether access to 191 // The callback that needs to be Run to notify WebRTC of whether access to
190 // audio/video devices was granted or not. 192 // audio/video devices was granted or not.
191 content::MediaResponseCallback callback_; 193 content::MediaResponseCallback callback_;
192 194
193 std::unique_ptr<PermissionPromptDelegate> delegate_; 195 std::unique_ptr<PermissionPromptDelegate> delegate_;
194 196
195 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController); 197 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController);
196 }; 198 };
197 199
198 #endif // CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 200 #endif // CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICES_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_quota_permission_context.cc ('k') | chrome/browser/media/webrtc/media_stream_devices_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698