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

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

Issue 1146403004: MidiPermissionContext::GetPermission() returns BLOCK for insecure origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MIDI_PERMISSION_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_
7 7
8 #include "chrome/browser/content_settings/permission_context_base.h" 8 #include "chrome/browser/content_settings/permission_context_base.h"
9 9
10 class GURL; 10 class GURL;
11 class PermissionRequestID; 11 class PermissionRequestID;
12 12
13 class MidiPermissionContext : public PermissionContextBase { 13 class MidiPermissionContext : public PermissionContextBase {
14 public: 14 public:
15 explicit MidiPermissionContext(Profile* profile); 15 explicit MidiPermissionContext(Profile* profile);
16 ~MidiPermissionContext() override; 16 ~MidiPermissionContext() override;
17 17
18 // PermissionContextBase:
19 ContentSetting GetPermissionStatus(
20 const GURL& requesting_origin,
21 const GURL& embedding_origin) const override;
22 void DecidePermission(content::WebContents* web_contents,
ddorwin 2015/05/22 16:18:59 Should be protected like the parent class?
mlamouri (slow - plz ping) 2015/05/22 18:16:00 Done.
23 const PermissionRequestID& id,
24 const GURL& requesting_origin,
25 const GURL& embedding_origin,
26 bool user_gesture,
27 const BrowserPermissionCallback& callback) override;
28
18 private: 29 private:
19
20 // PermissionContextBase: 30 // PermissionContextBase:
21 void UpdateTabContext(const PermissionRequestID& id, 31 void UpdateTabContext(const PermissionRequestID& id,
22 const GURL& requesting_frame, 32 const GURL& requesting_frame,
23 bool allowed) override; 33 bool allowed) override;
24 34
25 DISALLOW_COPY_AND_ASSIGN(MidiPermissionContext); 35 DISALLOW_COPY_AND_ASSIGN(MidiPermissionContext);
26 }; 36 };
27 37
28 #endif // CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_ 38 #endif // CHROME_BROWSER_MEDIA_MIDI_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698