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

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

Issue 329993002: Only grant MidiSysExMessage if needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/media/midi_dispatcher_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20 matching lines...) Expand all
31 private: 31 private:
32 void OnRequestSysExPermission(int render_view_id, 32 void OnRequestSysExPermission(int render_view_id,
33 int bridge_id, 33 int bridge_id,
34 const GURL& origin, 34 const GURL& origin,
35 bool user_gesture); 35 bool user_gesture);
36 void OnCancelSysExPermissionRequest(int render_view_id, 36 void OnCancelSysExPermissionRequest(int render_view_id,
37 int bridge_id, 37 int bridge_id,
38 const GURL& requesting_frame); 38 const GURL& requesting_frame);
39 void WasSysExPermissionGranted(int render_view_id, 39 void WasSysExPermissionGranted(int render_view_id,
40 int bridge_id, 40 int bridge_id,
41 bool success); 41 bool is_allowed);
42 42
43 int render_process_id_; 43 int render_process_id_;
44 BrowserContext* browser_context_; 44 BrowserContext* browser_context_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(MidiDispatcherHost); 46 DISALLOW_COPY_AND_ASSIGN(MidiDispatcherHost);
47 }; 47 };
48 48
49 } // namespace content 49 } // namespace content
50 50
51 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_ 51 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/midi_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698