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

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

Issue 1217853007: Web MIDI: add a new UMA entry for the final result code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #16 Created 5 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
« no previous file with comments | « no previous file | content/browser/media/midi_host.cc » ('j') | media/midi/midi_manager.cc » ('J')
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_MEDIA_MIDI_HOST_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_MIDI_HOST_H_
6 #define CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ 6 #define CONTENT_BROWSER_MEDIA_MIDI_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 20 matching lines...) Expand all
31 public media::midi::MidiManagerClient { 31 public media::midi::MidiManagerClient {
32 public: 32 public:
33 // Called from UI thread from the owner of this object. 33 // Called from UI thread from the owner of this object.
34 MidiHost(int renderer_process_id, media::midi::MidiManager* midi_manager); 34 MidiHost(int renderer_process_id, media::midi::MidiManager* midi_manager);
35 35
36 // BrowserMessageFilter implementation. 36 // BrowserMessageFilter implementation.
37 void OnDestruct() const override; 37 void OnDestruct() const override;
38 bool OnMessageReceived(const IPC::Message& message) override; 38 bool OnMessageReceived(const IPC::Message& message) override;
39 39
40 // MidiManagerClient implementation. 40 // MidiManagerClient implementation.
41 void CompleteStartSession(media::midi::MidiResult result) override; 41 void CompleteStartSession(media::midi::Result result) override;
42 void AddInputPort(const media::midi::MidiPortInfo& info) override; 42 void AddInputPort(const media::midi::MidiPortInfo& info) override;
43 void AddOutputPort(const media::midi::MidiPortInfo& info) override; 43 void AddOutputPort(const media::midi::MidiPortInfo& info) override;
44 void SetInputPortState(uint32 port, 44 void SetInputPortState(uint32 port,
45 media::midi::MidiPortState state) override; 45 media::midi::MidiPortState state) override;
46 void SetOutputPortState(uint32 port, 46 void SetOutputPortState(uint32 port,
47 media::midi::MidiPortState state) override; 47 media::midi::MidiPortState state) override;
48 void ReceiveMidiData(uint32 port, 48 void ReceiveMidiData(uint32 port,
49 const uint8* data, 49 const uint8* data,
50 size_t length, 50 size_t length,
51 double timestamp) override; 51 double timestamp) override;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Protects access to |output_port_count_|. 115 // Protects access to |output_port_count_|.
116 base::Lock output_port_count_lock_; 116 base::Lock output_port_count_lock_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(MidiHost); 118 DISALLOW_COPY_AND_ASSIGN(MidiHost);
119 }; 119 };
120 120
121 } // namespace content 121 } // namespace content
122 122
123 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ 123 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/midi_host.cc » ('j') | media/midi/midi_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698