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

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

Issue 18309004: Web MIDI: prepare to pass a security origin from blink to browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_HOST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 21 matching lines...) Expand all
32 bool* message_was_ok) OVERRIDE; 32 bool* message_was_ok) OVERRIDE;
33 33
34 // MIDIManagerClient implementation. 34 // MIDIManagerClient implementation.
35 virtual void ReceiveMIDIData( 35 virtual void ReceiveMIDIData(
36 int port_index, 36 int port_index,
37 const uint8* data, 37 const uint8* data,
38 size_t length, 38 size_t length,
39 double timestamp) OVERRIDE; 39 double timestamp) OVERRIDE;
40 40
41 // Request access to MIDI hardware. 41 // Request access to MIDI hardware.
42 void OnRequestAccess(int client_id, int access); 42 void OnRequestAccess(const std::string& origin, int client_id, int access);
43 43
44 // Data to be sent to a MIDI output port. 44 // Data to be sent to a MIDI output port.
45 void OnSendData(int port, 45 void OnSendData(int port,
46 const std::vector<uint8>& data, 46 const std::vector<uint8>& data,
47 double timestamp); 47 double timestamp);
48 48
49 private: 49 private:
50 friend class base::DeleteHelper<MIDIHost>; 50 friend class base::DeleteHelper<MIDIHost>;
51 friend class BrowserThread; 51 friend class BrowserThread;
52 52
53 virtual ~MIDIHost(); 53 virtual ~MIDIHost();
54 54
55 media::MIDIManager* const midi_manager_; 55 media::MIDIManager* const midi_manager_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(MIDIHost); 57 DISALLOW_COPY_AND_ASSIGN(MIDIHost);
58 }; 58 };
59 59
60 } // namespace content 60 } // namespace content
61 61
62 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_HOST_H_ 62 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MIDI_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/midi_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698