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 CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void CancelPermissionRequestsForFrame(RenderFrameHost* render_frame_host); | 44 void CancelPermissionRequestsForFrame(RenderFrameHost* render_frame_host); |
45 | 45 |
46 struct PendingPermission { | 46 struct PendingPermission { |
47 PendingPermission(int render_process_id, | 47 PendingPermission(int render_process_id, |
48 int render_frame_id, | 48 int render_frame_id, |
49 int bridge_id); | 49 int bridge_id); |
50 ~PendingPermission(); | 50 ~PendingPermission(); |
51 int render_process_id; | 51 int render_process_id; |
52 int render_frame_id; | 52 int render_frame_id; |
53 int bridge_id; | 53 int bridge_id; |
54 base::Closure cancel; | |
55 }; | 54 }; |
56 std::vector<PendingPermission> pending_permissions_; | 55 std::vector<PendingPermission> pending_permissions_; |
57 | 56 |
58 base::WeakPtrFactory<MidiDispatcherHost> weak_factory_; | 57 base::WeakPtrFactory<MidiDispatcherHost> weak_factory_; |
59 | 58 |
60 DISALLOW_COPY_AND_ASSIGN(MidiDispatcherHost); | 59 DISALLOW_COPY_AND_ASSIGN(MidiDispatcherHost); |
61 }; | 60 }; |
62 | 61 |
63 } // namespace content | 62 } // namespace content |
64 | 63 |
65 #endif // CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ | 64 #endif // CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ |
OLD | NEW |