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

Unified Diff: content/browser/media/midi_host.h

Issue 2431393002: Web MIDI: move MIDI message validating logic into message_util.{cc|h} (Closed)
Patch Set: build fix Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/media/midi_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/midi_host.h
diff --git a/content/browser/media/midi_host.h b/content/browser/media/midi_host.h
index b5220d48821a0f05eb666e918b30c527b4c643ca..993a06c72b0e08152d5170fa353da10f241660ac 100644
--- a/content/browser/media/midi_host.h
+++ b/content/browser/media/midi_host.h
@@ -70,17 +70,9 @@ class CONTENT_EXPORT MidiHost : public BrowserMessageFilter,
~MidiHost() override;
private:
- FRIEND_TEST_ALL_PREFIXES(MidiHostTest, IsValidWebMIDIData);
friend class base::DeleteHelper<MidiHost>;
friend class BrowserThread;
- // Returns true if |data| fulfills the requirements of MidiOutput.send API
- // defined in the Web MIDI spec.
- // - |data| must be any number of complete MIDI messages (data abbreviation
- // called "running status" is disallowed).
- // - 1-byte MIDI realtime messages can be placed at any position of |data|.
- static bool IsValidWebMIDIData(const std::vector<uint8_t>& data);
-
int renderer_process_id_;
// Represents if the renderer has a permission to send/receive MIDI SysEX
« no previous file with comments | « no previous file | content/browser/media/midi_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698