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

Unified Diff: chrome/browser/media_galleries/linux/mtp_device_task_helper.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (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: chrome/browser/media_galleries/linux/mtp_device_task_helper.h
diff --git a/chrome/browser/media_galleries/linux/mtp_device_task_helper.h b/chrome/browser/media_galleries/linux/mtp_device_task_helper.h
index 2a73e17de3937a6b7b71745f5c4578c4225220db..c4d33e25ee1b65ec9cbf4011cb56040390a2455f 100644
--- a/chrome/browser/media_galleries/linux/mtp_device_task_helper.h
+++ b/chrome/browser/media_galleries/linux/mtp_device_task_helper.h
@@ -5,12 +5,14 @@
#ifndef CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_H_
#define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_MTP_DEVICE_TASK_HELPER_H_
+#include <stddef.h>
#include <stdint.h>
#include <string>
#include <vector>
#include "base/callback.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
@@ -78,12 +80,12 @@ class MTPDeviceTaskHelper {
//
// If there is an error, |error_callback| is invoked on the IO thread to
// notify the caller about the file error.
- void GetFileInfo(uint32 file_id,
+ void GetFileInfo(uint32_t file_id,
const GetFileInfoSuccessCallback& success_callback,
const ErrorCallback& error_callback);
// Forwards CreateDirectory request to the MediaTransferProtocolManager.
- void CreateDirectory(const uint32 parent_id,
+ void CreateDirectory(const uint32_t parent_id,
const std::string& directory_name,
const CreateDirectorySuccessCallback& success_callback,
const ErrorCallback& error_callback);
@@ -100,7 +102,7 @@ class MTPDeviceTaskHelper {
//
// If there is an error, |error_callback| is invoked on the IO thread to
// notify the caller about the file error.
- void ReadDirectory(const uint32 directory_id,
+ void ReadDirectory(const uint32_t directory_id,
const size_t max_size,
const ReadDirectorySuccessCallback& success_callback,
const ErrorCallback& error_callback);
@@ -122,7 +124,7 @@ class MTPDeviceTaskHelper {
void ReadBytes(const MTPDeviceAsyncDelegate::ReadBytesRequest& request);
// Forwards RenameObject request to the MediaTransferProtocolManager.
- void RenameObject(const uint32 object_id,
+ void RenameObject(const uint32_t object_id,
const std::string& new_name,
const RenameObjectSuccessCallback& success_callback,
const ErrorCallback& error_callback);
@@ -131,13 +133,13 @@ class MTPDeviceTaskHelper {
void CopyFileFromLocal(
const std::string& storage_name,
const int source_file_descriptor,
- const uint32 parent_id,
+ const uint32_t parent_id,
const std::string& file_name,
const CopyFileFromLocalSuccessCallback& success_callback,
const ErrorCallback& error_callback);
// Forwards DeleteObject request to the MediaTransferProtocolManager.
- void DeleteObject(const uint32 object_id,
+ void DeleteObject(const uint32_t object_id,
const DeleteObjectSuccessCallback& success_callback,
const ErrorCallback& error_callback);

Powered by Google App Engine
This is Rietveld 408576698