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

Unified Diff: media/blink/cache_util.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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: media/blink/cache_util.cc
diff --git a/media/blink/cache_util.cc b/media/blink/cache_util.cc
index 0f55b1ff92f639b25329ba8382e4ce27e4c89ba4..d5409802bc6fe7e16cfb6356802b1b0a46970f3a 100644
--- a/media/blink/cache_util.cc
+++ b/media/blink/cache_util.cc
@@ -24,8 +24,8 @@ namespace media {
enum { kHttpOK = 200, kHttpPartialContent = 206 };
-uint32 GetReasonsForUncacheability(const WebURLResponse& response) {
- uint32 reasons = 0;
+uint32_t GetReasonsForUncacheability(const WebURLResponse& response) {
+ uint32_t reasons = 0;
const int code = response.httpStatusCode();
const int version = response.httpVersion();
const HttpVersion http_version =
@@ -66,7 +66,7 @@ uint32 GetReasonsForUncacheability(const WebURLResponse& response) {
const char kMaxAgePrefix[] = "max-age=";
const size_t kMaxAgePrefixLen = arraysize(kMaxAgePrefix) - 1;
if (cache_control_header.substr(0, kMaxAgePrefixLen) == kMaxAgePrefix) {
- int64 max_age_seconds;
+ int64_t max_age_seconds;
base::StringToInt64(
base::StringPiece(cache_control_header.begin() + kMaxAgePrefixLen,
cache_control_header.end()),
@@ -102,7 +102,7 @@ base::TimeDelta GetCacheValidUntil(const WebURLResponse& response) {
const char kMaxAgePrefix[] = "max-age=";
const size_t kMaxAgePrefixLen = arraysize(kMaxAgePrefix) - 1;
if (cache_control_header.substr(0, kMaxAgePrefixLen) == kMaxAgePrefix) {
- int64 max_age_seconds;
+ int64_t max_age_seconds;
base::StringToInt64(
base::StringPiece(cache_control_header.begin() + kMaxAgePrefixLen,
cache_control_header.end()),

Powered by Google App Engine
This is Rietveld 408576698