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

Unified Diff: chromeos/binder/writable_transaction_data.h

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes 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 | « chromeos/binder/util.cc ('k') | chromeos/binder/writable_transaction_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/binder/writable_transaction_data.h
diff --git a/chromeos/binder/writable_transaction_data.h b/chromeos/binder/writable_transaction_data.h
index f32eff89f2ea192e11279f49fc3ee0a8505da85f..9001ad340d521c9b4cea3967ce8784c5351f68d5 100644
--- a/chromeos/binder/writable_transaction_data.h
+++ b/chromeos/binder/writable_transaction_data.h
@@ -5,9 +5,11 @@
#ifndef CHROMEOS_BINDER_WRITABLE_TRANSACTION_DATA_H_
#define CHROMEOS_BINDER_WRITABLE_TRANSACTION_DATA_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <vector>
-#include "base/basictypes.h"
#include "base/macros.h"
#include "chromeos/binder/transaction_data.h"
#include "chromeos/chromeos_export.h"
@@ -24,7 +26,7 @@ class CHROMEOS_EXPORT WritableTransactionData : public TransactionData {
// TransactionData override:
uintptr_t GetCookie() const override;
- uint32 GetCode() const override;
+ uint32_t GetCode() const override;
pid_t GetSenderPID() const override;
uid_t GetSenderEUID() const override;
bool IsOneWay() const override;
@@ -39,7 +41,7 @@ class CHROMEOS_EXPORT WritableTransactionData : public TransactionData {
void Reserve(size_t n);
// Sets the transaction code returned by GetCode().
- void SetCode(uint32 code) { code_ = code; }
+ void SetCode(uint32_t code) { code_ = code; }
// Sets the value returned by IsOneWay().
void SetIsOneWay(bool is_one_way) { is_one_way_ = is_one_way; }
@@ -47,17 +49,17 @@ class CHROMEOS_EXPORT WritableTransactionData : public TransactionData {
// Appends the specified data with appropriate padding.
void WriteData(const void* data, size_t n);
- // Appends an int32 value.
- void WriteInt32(int32 value);
+ // Appends an int32_t value.
+ void WriteInt32(int32_t value);
- // Appends a uint32 value.
- void WriteUint32(uint32 value);
+ // Appends a uint32_t value.
+ void WriteUint32(uint32_t value);
- // Appends an int64 vlaue.
- void WriteInt64(int64 value);
+ // Appends an int64_t vlaue.
+ void WriteInt64(int64_t value);
- // Appends a uint64 value.
- void WriteUint64(uint64 value);
+ // Appends a uint64_t value.
+ void WriteUint64(uint64_t value);
// Appends a float value.
void WriteFloat(float value);
@@ -67,7 +69,7 @@ class CHROMEOS_EXPORT WritableTransactionData : public TransactionData {
// TODO(hashimoto): Support more types (i.e. strings, FDs, objects).
private:
- uint32 code_ = 0;
+ uint32_t code_ = 0;
bool is_one_way_ = false;
std::vector<char> data_;
std::vector<uintptr_t> object_offsets_;
« no previous file with comments | « chromeos/binder/util.cc ('k') | chromeos/binder/writable_transaction_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698