OLD | NEW |
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 CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 typedef base::Callback<void(bool)> MidiSysExPermissionCallback; | 128 typedef base::Callback<void(bool)> MidiSysExPermissionCallback; |
129 | 129 |
130 // Requests a permission to use system exclusive messages in MIDI events. | 130 // Requests a permission to use system exclusive messages in MIDI events. |
131 // |callback| will be invoked when the request is resolved. | 131 // |callback| will be invoked when the request is resolved. |
132 virtual void RequestMidiSysExPermission( | 132 virtual void RequestMidiSysExPermission( |
133 int render_process_id, | 133 int render_process_id, |
134 int render_view_id, | 134 int render_view_id, |
135 int bridge_id, | 135 int bridge_id, |
136 const GURL& requesting_frame, | 136 const GURL& requesting_frame, |
| 137 bool user_gesture, |
137 const MidiSysExPermissionCallback& callback) = 0; | 138 const MidiSysExPermissionCallback& callback) = 0; |
138 | 139 |
139 // Cancels a pending MIDI permission request. | 140 // Cancels a pending MIDI permission request. |
140 virtual void CancelMidiSysExPermissionRequest( | 141 virtual void CancelMidiSysExPermissionRequest( |
141 int render_process_id, | 142 int render_process_id, |
142 int render_view_id, | 143 int render_view_id, |
143 int bridge_id, | 144 int bridge_id, |
144 const GURL& requesting_frame) = 0; | 145 const GURL& requesting_frame) = 0; |
145 | 146 |
146 typedef base::Callback<void(bool)> ProtectedMediaIdentifierPermissionCallback; | 147 typedef base::Callback<void(bool)> ProtectedMediaIdentifierPermissionCallback; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 struct hash<content::BrowserContext*> { | 185 struct hash<content::BrowserContext*> { |
185 std::size_t operator()(content::BrowserContext* const& p) const { | 186 std::size_t operator()(content::BrowserContext* const& p) const { |
186 return reinterpret_cast<std::size_t>(p); | 187 return reinterpret_cast<std::size_t>(p); |
187 } | 188 } |
188 }; | 189 }; |
189 | 190 |
190 } // namespace BASE_HASH_NAMESPACE | 191 } // namespace BASE_HASH_NAMESPACE |
191 #endif | 192 #endif |
192 | 193 |
193 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ | 194 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ |
OLD | NEW |