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

Side by Side Diff: content/browser/media/midi_dispatcher_host.h

Issue 622793002: Group the different permission related methods in the content api. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698