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

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

Issue 571483002: Refactor content client to include a single Request/CancelPermission method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geoloc_permission
Patch Set: Created 6 years, 3 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 28 matching lines...) Expand all
39 bool is_allowed); 39 bool is_allowed);
40 40
41 struct PendingPermission { 41 struct PendingPermission {
42 PendingPermission(int render_process_id, 42 PendingPermission(int render_process_id,
43 int render_frame_id, 43 int render_frame_id,
44 int bridge_id); 44 int bridge_id);
45 ~PendingPermission(); 45 ~PendingPermission();
46 int render_process_id; 46 int render_process_id;
47 int render_frame_id; 47 int render_frame_id;
48 int bridge_id; 48 int bridge_id;
49 base::Closure cancel;
50 }; 49 };
51 std::vector<PendingPermission> pending_permissions_; 50 std::vector<PendingPermission> pending_permissions_;
52 51
53 base::WeakPtrFactory<MidiDispatcherHost> weak_factory_; 52 base::WeakPtrFactory<MidiDispatcherHost> weak_factory_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(MidiDispatcherHost); 54 DISALLOW_COPY_AND_ASSIGN(MidiDispatcherHost);
56 }; 55 };
57 56
58 } // namespace content 57 } // namespace content
59 58
60 #endif // CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_ 59 #endif // CONTENT_BROWSER_MEDIA_MIDI_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/media/cdm/browser_cdm_manager.cc ('k') | content/browser/media/midi_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698