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

Unified Diff: content/renderer/media/midi_message_filter.h

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « content/renderer/media/midi_dispatcher.h ('k') | content/renderer/media/midi_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/midi_message_filter.h
diff --git a/content/renderer/media/midi_message_filter.h b/content/renderer/media/midi_message_filter.h
index 77cbb7388185c665a18f071807d372461fc10a01..bf818ad3e55d9b415bdc380fa81eb9328334e91b 100644
--- a/content/renderer/media/midi_message_filter.h
+++ b/content/renderer/media/midi_message_filter.h
@@ -5,9 +5,13 @@
#ifndef CONTENT_RENDERER_MEDIA_MIDI_MESSAGE_FILTER_H_
#define CONTENT_RENDERER_MEDIA_MIDI_MESSAGE_FILTER_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <set>
#include <vector>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
#include "ipc/message_filter.h"
@@ -34,8 +38,8 @@ class CONTENT_EXPORT MidiMessageFilter : public IPC::MessageFilter {
// A client will only be able to call this method if it has a suitable
// output port (from addOutputPort()).
- void SendMidiData(uint32 port,
- const uint8* data,
+ void SendMidiData(uint32_t port,
+ const uint8_t* data,
size_t length,
double timestamp);
@@ -58,8 +62,8 @@ class CONTENT_EXPORT MidiMessageFilter : public IPC::MessageFilter {
private:
void StartSessionOnIOThread();
- void SendMidiDataOnIOThread(uint32 port,
- const std::vector<uint8>& data,
+ void SendMidiDataOnIOThread(uint32_t port,
+ const std::vector<uint8_t>& data,
double timestamp);
void EndSessionOnIOThread();
@@ -88,13 +92,13 @@ class CONTENT_EXPORT MidiMessageFilter : public IPC::MessageFilter {
// These functions are called to notify the recipient that a device that is
// notified via OnAddInputPort() or OnAddOutputPort() gets disconnected, or
// connected again.
- void OnSetInputPortState(uint32 port, media::midi::MidiPortState state);
- void OnSetOutputPortState(uint32 port, media::midi::MidiPortState state);
+ void OnSetInputPortState(uint32_t port, media::midi::MidiPortState state);
+ void OnSetOutputPortState(uint32_t port, media::midi::MidiPortState state);
// Called when the browser process has sent MIDI data containing one or
// more messages.
- void OnDataReceived(uint32 port,
- const std::vector<uint8>& data,
+ void OnDataReceived(uint32_t port,
+ const std::vector<uint8_t>& data,
double timestamp);
// From time-to-time, the browser incrementally informs us of how many bytes
@@ -107,11 +111,12 @@ class CONTENT_EXPORT MidiMessageFilter : public IPC::MessageFilter {
void HandleAddInputPort(media::midi::MidiPortInfo info);
void HandleAddOutputPort(media::midi::MidiPortInfo info);
- void HandleSetInputPortState(uint32 port, media::midi::MidiPortState state);
- void HandleSetOutputPortState(uint32 port, media::midi::MidiPortState state);
+ void HandleSetInputPortState(uint32_t port, media::midi::MidiPortState state);
+ void HandleSetOutputPortState(uint32_t port,
+ media::midi::MidiPortState state);
- void HandleDataReceived(uint32 port,
- const std::vector<uint8>& data,
+ void HandleDataReceived(uint32_t port,
+ const std::vector<uint8_t>& data,
double timestamp);
void HandleAckknowledgeSentData(size_t bytes_sent);
« no previous file with comments | « content/renderer/media/midi_dispatcher.h ('k') | content/renderer/media/midi_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698