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

Unified Diff: ipc/mojo/ipc_mojo_bootstrap.cc

Issue 1322253003: ipc: Convert int types from basictypes.h to the ones from stdint.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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
« ipc/message_filter.h ('K') | « ipc/mojo/ipc_message_pipe_reader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_mojo_bootstrap.cc
diff --git a/ipc/mojo/ipc_mojo_bootstrap.cc b/ipc/mojo/ipc_mojo_bootstrap.cc
index 91f3940b37a10bfccf0231c1265f249ada682843..1b1308295ad2fae5e498c7118470ba70b7ad09ed 100644
--- a/ipc/mojo/ipc_mojo_bootstrap.cc
+++ b/ipc/mojo/ipc_mojo_bootstrap.cc
@@ -4,6 +4,8 @@
#include "ipc/mojo/ipc_mojo_bootstrap.h"
+#include <stdint.h>
+
#include "base/logging.h"
#include "base/process/process_handle.h"
#include "ipc/ipc_message_utils.h"
@@ -21,11 +23,11 @@ class MojoServerBootstrap : public MojoBootstrap {
MojoServerBootstrap();
private:
- void SendClientPipe(int32 peer_pid);
+ void SendClientPipe(int32_t peer_pid);
// Listener implementations
bool OnMessageReceived(const Message& message) override;
- void OnChannelConnected(int32 peer_pid) override;
+ void OnChannelConnected(int32_t peer_pid) override;
mojo::embedder::ScopedPlatformHandle server_pipe_;
bool connected_;
@@ -36,7 +38,7 @@ class MojoServerBootstrap : public MojoBootstrap {
MojoServerBootstrap::MojoServerBootstrap() : connected_(false) {
}
-void MojoServerBootstrap::SendClientPipe(int32 peer_pid) {
+void MojoServerBootstrap::SendClientPipe(int32_t peer_pid) {
DCHECK_EQ(state(), STATE_INITIALIZED);
DCHECK(connected_);
@@ -73,7 +75,7 @@ void MojoServerBootstrap::SendClientPipe(int32 peer_pid) {
set_state(STATE_WAITING_ACK);
}
-void MojoServerBootstrap::OnChannelConnected(int32 peer_pid) {
+void MojoServerBootstrap::OnChannelConnected(int32_t peer_pid) {
DCHECK_EQ(state(), STATE_INITIALIZED);
connected_ = true;
SendClientPipe(peer_pid);
@@ -103,7 +105,7 @@ class MojoClientBootstrap : public MojoBootstrap {
private:
// Listener implementations
bool OnMessageReceived(const Message& message) override;
- void OnChannelConnected(int32 peer_pid) override;
+ void OnChannelConnected(int32_t peer_pid) override;
DISALLOW_COPY_AND_ASSIGN(MojoClientBootstrap);
};
@@ -136,7 +138,7 @@ bool MojoClientBootstrap::OnMessageReceived(const Message& message) {
return true;
}
-void MojoClientBootstrap::OnChannelConnected(int32 peer_pid) {
+void MojoClientBootstrap::OnChannelConnected(int32_t peer_pid) {
}
} // namespace
« ipc/message_filter.h ('K') | « ipc/mojo/ipc_message_pipe_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698