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

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

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delay "requests_.Remove(it.GetCurrentKey());" until we're done using |it|. Created 7 years, 1 month 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_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_
7 7
8 #include "content/public/browser/browser_message_filter.h" 8 #include "content/public/browser/browser_message_filter.h"
9 9
10 class GURL; 10 class GURL;
(...skipping 13 matching lines...) Expand all
24 virtual bool OnMessageReceived(const IPC::Message& message, 24 virtual bool OnMessageReceived(const IPC::Message& message,
25 bool* message_was_ok) OVERRIDE; 25 bool* message_was_ok) OVERRIDE;
26 virtual void OverrideThreadForMessage( 26 virtual void OverrideThreadForMessage(
27 const IPC::Message& message, BrowserThread::ID* thread) OVERRIDE; 27 const IPC::Message& message, BrowserThread::ID* thread) OVERRIDE;
28 28
29 protected: 29 protected:
30 virtual ~MIDIDispatcherHost(); 30 virtual ~MIDIDispatcherHost();
31 31
32 private: 32 private:
33 void OnRequestSysExPermission(int render_view_id, 33 void OnRequestSysExPermission(int render_view_id,
34 int client_id, 34 int bridge_id,
35 const GURL& origin); 35 const GURL& origin);
36 void OnCancelSysExPermissionRequest(int render_view_id,
37 int bridge_id,
38 const GURL& requesting_frame);
36 void WasSysExPermissionGranted(int render_view_id, 39 void WasSysExPermissionGranted(int render_view_id,
37 int client_id, 40 int bridge_id,
38 bool success); 41 bool success);
39 42
40 int render_process_id_; 43 int render_process_id_;
41 BrowserContext* browser_context_; 44 BrowserContext* browser_context_;
42 45
43 DISALLOW_COPY_AND_ASSIGN(MIDIDispatcherHost); 46 DISALLOW_COPY_AND_ASSIGN(MIDIDispatcherHost);
44 }; 47 };
45 48
46 } // namespace content 49 } // namespace content
47 50
48 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_ 51 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698