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

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

Issue 1492403002: Remove kuint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: http security header file 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/snapshot_file_details.h
diff --git a/chrome/browser/media_galleries/linux/snapshot_file_details.h b/chrome/browser/media_galleries/linux/snapshot_file_details.h
index 0457210518b20b6aed597d17acc027246a390fad..e0e3c391dbe556dc36000de74cc465f429514363 100644
--- a/chrome/browser/media_galleries/linux/snapshot_file_details.h
+++ b/chrome/browser/media_galleries/linux/snapshot_file_details.h
@@ -5,9 +5,10 @@
#ifndef CHROME_BROWSER_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_
#define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
#include "base/callback.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
@@ -16,7 +17,7 @@
// Used to represent snapshot file request params.
struct SnapshotRequestInfo {
SnapshotRequestInfo(
- uint32 file_id,
+ uint32_t file_id,
const base::FilePath& snapshot_file_path,
const MTPDeviceAsyncDelegate::CreateSnapshotFileSuccessCallback&
success_callback,
@@ -24,7 +25,7 @@ struct SnapshotRequestInfo {
~SnapshotRequestInfo();
// MTP device file id.
- const uint32 file_id;
+ const uint32_t file_id;
// Local platform path of the snapshot file.
const base::FilePath snapshot_file_path;
@@ -47,17 +48,13 @@ class SnapshotFileDetails {
~SnapshotFileDetails();
- uint32 file_id() const {
- return request_info_.file_id;
- }
+ uint32_t file_id() const { return request_info_.file_id; }
base::FilePath snapshot_file_path() const {
return request_info_.snapshot_file_path;
}
- uint32 bytes_written() const {
- return bytes_written_;
- }
+ uint32_t bytes_written() const { return bytes_written_; }
const base::File::Info& file_info() const {
return file_info_;
@@ -85,13 +82,13 @@ class SnapshotFileDetails {
// |bytes_written_|.
// If |bytes_written| is invalid, returns false and does not add
// |bytes_written| to |bytes_written_|.
- bool AddBytesWritten(uint32 bytes_written);
+ bool AddBytesWritten(uint32_t bytes_written);
// Returns true if the snapshot file is created successfully (no more write
// operation is required to complete the snapshot file).
bool IsSnapshotFileWriteComplete() const;
- uint32 BytesToRead() const;
+ uint32_t BytesToRead() const;
private:
// Snapshot file request params.
@@ -101,7 +98,7 @@ class SnapshotFileDetails {
const base::File::Info file_info_;
// Number of bytes written into the snapshot file.
- uint32 bytes_written_;
+ uint32_t bytes_written_;
// Whether an error occurred during file transfer.
bool error_occurred_;

Powered by Google App Engine
This is Rietveld 408576698