| OLD | NEW |
| 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_CHROME_MIDI_PERMISSION_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_CHROME_MIDI_PERMISSION_CONTEXT_H_ |
| 6 #define CHROME_BROWSER_MEDIA_CHROME_MIDI_PERMISSION_CONTEXT_H_ | 6 #define CHROME_BROWSER_MEDIA_CHROME_MIDI_PERMISSION_CONTEXT_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 9 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
| 10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 void NotifyPermissionSet( | 60 void NotifyPermissionSet( |
| 61 const PermissionRequestID& id, | 61 const PermissionRequestID& id, |
| 62 const GURL& requesting_frame, | 62 const GURL& requesting_frame, |
| 63 const content::BrowserContext::MIDISysExPermissionCallback& callback, | 63 const content::BrowserContext::MIDISysExPermissionCallback& callback, |
| 64 bool allowed); | 64 bool allowed); |
| 65 | 65 |
| 66 // Return an instance of the infobar queue controller, creating it if needed. | 66 // Return an instance of the infobar queue controller, creating it if needed. |
| 67 PermissionQueueController* GetQueueController(); | 67 PermissionQueueController* GetQueueController(); |
| 68 | 68 |
| 69 // Removes any pending InfoBar request. | 69 // Removes any pending InfoBar request. |
| 70 void CancelPendingInfoBarRequest(const PermissionRequestID& id); | 70 void CancelPendingInfobarRequest(const PermissionRequestID& id); |
| 71 | 71 |
| 72 Profile* const profile_; | 72 Profile* const profile_; |
| 73 bool shutting_down_; | 73 bool shutting_down_; |
| 74 scoped_ptr<PermissionQueueController> permission_queue_controller_; | 74 scoped_ptr<PermissionQueueController> permission_queue_controller_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(ChromeMIDIPermissionContext); | 76 DISALLOW_COPY_AND_ASSIGN(ChromeMIDIPermissionContext); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 #endif // CHROME_BROWSER_MEDIA_CHROME_MIDI_PERMISSION_CONTEXT_H_ | 79 #endif // CHROME_BROWSER_MEDIA_CHROME_MIDI_PERMISSION_CONTEXT_H_ |
| OLD | NEW |