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

Unified Diff: content/browser/appcache/appcache_service_impl.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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: content/browser/appcache/appcache_service_impl.cc
diff --git a/content/browser/appcache/appcache_service_impl.cc b/content/browser/appcache/appcache_service_impl.cc
index 37d64244ada044a73aef2b63c467b96deaa540dc..fd8c686bd2e422f88af8ad50dd1f4318baeb3240 100644
--- a/content/browser/appcache/appcache_service_impl.cc
+++ b/content/browser/appcache/appcache_service_impl.cc
@@ -10,6 +10,7 @@
#include "base/bind_helpers.h"
#include "base/location.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/thread_task_runner_handle.h"
@@ -255,9 +256,10 @@ void AppCacheServiceImpl::GetInfoHelper::OnAllInfo(
class AppCacheServiceImpl::CheckResponseHelper : AsyncHelper {
public:
- CheckResponseHelper(
- AppCacheServiceImpl* service, const GURL& manifest_url, int64 cache_id,
- int64 response_id)
+ CheckResponseHelper(AppCacheServiceImpl* service,
+ const GURL& manifest_url,
+ int64_t cache_id,
+ int64_t response_id)
: AsyncHelper(service, net::CompletionCallback()),
manifest_url_(manifest_url),
cache_id_(cache_id),
@@ -265,8 +267,7 @@ class AppCacheServiceImpl::CheckResponseHelper : AsyncHelper {
kIOBufferSize(32 * 1024),
expected_total_size_(0),
amount_headers_read_(0),
- amount_data_read_(0) {
- }
+ amount_data_read_(0) {}
void Start() override {
service_->storage()->LoadOrCreateGroup(manifest_url_, this);
@@ -286,8 +287,8 @@ class AppCacheServiceImpl::CheckResponseHelper : AsyncHelper {
// Inputs describing what to check.
GURL manifest_url_;
- int64 cache_id_;
- int64 response_id_;
+ int64_t cache_id_;
+ int64_t response_id_;
// Internals used to perform the checks.
const int kIOBufferSize;
@@ -295,7 +296,7 @@ class AppCacheServiceImpl::CheckResponseHelper : AsyncHelper {
scoped_ptr<AppCacheResponseReader> response_reader_;
scoped_refptr<HttpResponseInfoIOBuffer> info_buffer_;
scoped_refptr<net::IOBuffer> data_buffer_;
- int64 expected_total_size_;
+ int64_t expected_total_size_;
int amount_headers_read_;
int amount_data_read_;
DISALLOW_COPY_AND_ASSIGN(CheckResponseHelper);
@@ -498,8 +499,8 @@ void AppCacheServiceImpl::DeleteAppCachesForOrigin(
}
void AppCacheServiceImpl::CheckAppCacheResponse(const GURL& manifest_url,
- int64 cache_id,
- int64 response_id) {
+ int64_t cache_id,
+ int64_t response_id) {
CheckResponseHelper* helper = new CheckResponseHelper(
this, manifest_url, cache_id, response_id);
helper->Start();
« no previous file with comments | « content/browser/appcache/appcache_service_impl.h ('k') | content/browser/appcache/appcache_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698