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

Unified Diff: sync/engine/net/server_connection_manager.h

Issue 1545553003: Switch to standard integer types in sync/. (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
« no previous file with comments | « sync/engine/model_type_worker_unittest.cc ('k') | sync/engine/net/server_connection_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/net/server_connection_manager.h
diff --git a/sync/engine/net/server_connection_manager.h b/sync/engine/net/server_connection_manager.h
index f1145b49364aeb591b146aef784632bb66bd0e7d..6cb653f76cb74d8a5dcb4877834081de421b35b3 100644
--- a/sync/engine/net/server_connection_manager.h
+++ b/sync/engine/net/server_connection_manager.h
@@ -5,10 +5,13 @@
#ifndef SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_
#define SYNC_ENGINE_NET_SERVER_CONNECTION_MANAGER_H_
+#include <stdint.h>
+
#include <iosfwd>
#include <string>
#include "base/atomicops.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/strings/string_util.h"
@@ -31,9 +34,9 @@ namespace syncable {
class Directory;
}
-static const int32 kUnsetResponseCode = -1;
-static const int32 kUnsetContentLength = -1;
-static const int32 kUnsetPayloadLength = -1;
+static const int32_t kUnsetResponseCode = -1;
+static const int32_t kUnsetContentLength = -1;
+static const int32_t kUnsetPayloadLength = -1;
// HttpResponse gathers the relevant output properties of an HTTP request.
// Depending on the value of the server_status code, response_code, and
@@ -73,13 +76,13 @@ struct SYNC_EXPORT HttpResponse {
};
// The HTTP Status code.
- int64 response_code;
+ int64_t response_code;
// The value of the Content-length header.
- int64 content_length;
+ int64_t content_length;
// The size of a download request's payload.
- int64 payload_length;
+ int64_t payload_length;
// Identifies the type of failure, if any.
ServerConnectionCode server_status;
« no previous file with comments | « sync/engine/model_type_worker_unittest.cc ('k') | sync/engine/net/server_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698