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

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

Issue 1843063002: Don't show scheme in permission prompts if it is HTTPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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_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 21 matching lines...) Expand all
32 32
33 ~MediaStreamDevicesController() override; 33 ~MediaStreamDevicesController() override;
34 34
35 // Registers the prefs backing the audio and video policies. 35 // Registers the prefs backing the audio and video policies.
36 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 36 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
37 37
38 bool IsAllowedForAudio() const; 38 bool IsAllowedForAudio() const;
39 bool IsAllowedForVideo() const; 39 bool IsAllowedForVideo() const;
40 bool IsAskingForAudio() const; 40 bool IsAskingForAudio() const;
41 bool IsAskingForVideo() const; 41 bool IsAskingForVideo() const;
42 const std::string& GetSecurityOriginSpec() const;
43 42
44 // Forces the permissions to be denied (without being persisted) regardless 43 // Forces the permissions to be denied (without being persisted) regardless
45 // of what the previous state was. If the user had previously allowed the 44 // of what the previous state was. If the user had previously allowed the
46 // site video or audio access, this ignores that and informs the site it was 45 // site video or audio access, this ignores that and informs the site it was
47 // denied. 46 // denied.
48 // 47 //
49 // This differs from PermissionGranted/PermissionDenied as they only operate 48 // This differs from PermissionGranted/PermissionDenied as they only operate
50 // on the permissions if they are in the ASK state. 49 // on the permissions if they are in the ASK state.
51 void ForcePermissionDeniedTemporarily(); 50 void ForcePermissionDeniedTemporarily();
52 51
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // audio/video devices was granted or not. 123 // audio/video devices was granted or not.
125 content::MediaResponseCallback callback_; 124 content::MediaResponseCallback callback_;
126 125
127 // Whether the permissions granted or denied by the user should be persisted. 126 // Whether the permissions granted or denied by the user should be persisted.
128 bool persist_permission_changes_; 127 bool persist_permission_changes_;
129 128
130 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController); 129 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController);
131 }; 130 };
132 131
133 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 132 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698