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

Unified Diff: content/renderer/media/video_capture_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
Index: content/renderer/media/video_capture_message_filter.h
diff --git a/content/renderer/media/video_capture_message_filter.h b/content/renderer/media/video_capture_message_filter.h
index c8cb87232c60f3bd01075d841dfb8078fe5241f8..9088cd38f24a1a6f6d512d6b4f43c37930e7fcdb 100644
--- a/content/renderer/media/video_capture_message_filter.h
+++ b/content/renderer/media/video_capture_message_filter.h
@@ -10,8 +10,11 @@
#ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_
#define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_MESSAGE_FILTER_H_
+#include <stdint.h>
+
#include <map>
+#include "base/macros.h"
#include "base/memory/shared_memory.h"
#include "base/values.h"
#include "content/common/content_export.h"
@@ -68,7 +71,7 @@ class CONTENT_EXPORT VideoCaptureMessageFilter : public IPC::MessageFilter {
// Called when the delegate has been added to filter's delegate list.
// |device_id| is the device id for the delegate.
- virtual void OnDelegateAdded(int32 device_id) = 0;
+ virtual void OnDelegateAdded(int32_t device_id) = 0;
protected:
virtual ~Delegate() {}
@@ -95,7 +98,7 @@ class CONTENT_EXPORT VideoCaptureMessageFilter : public IPC::MessageFilter {
~VideoCaptureMessageFilter() override;
private:
- typedef std::map<int32, Delegate*> Delegates;
+ typedef std::map<int32_t, Delegate*> Delegates;
// Receive a newly created buffer from browser process.
void OnBufferCreated(int device_id,
@@ -136,7 +139,7 @@ class CONTENT_EXPORT VideoCaptureMessageFilter : public IPC::MessageFilter {
// A map of device ids to delegates.
Delegates delegates_;
Delegates pending_delegates_;
- int32 last_device_id_;
+ int32_t last_device_id_;
IPC::Sender* sender_;
« no previous file with comments | « content/renderer/media/video_capture_impl_unittest.cc ('k') | content/renderer/media/video_capture_message_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698