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