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

Unified Diff: content/browser/storage_partition_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
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 7bcd5cf8bc72a7a88bed2a1b28b94bbe2b3d3da5..0afff15d7339fb8a63fdf33f22c628f394ede8a6 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -4,6 +4,8 @@
#include "content/browser/storage_partition_impl.h"
+#include <stddef.h>
+
#include <set>
#include <vector>
@@ -201,7 +203,7 @@ void ClearSessionStorageOnUIThread(
} // namespace
// Static.
-int StoragePartitionImpl::GenerateQuotaClientMask(uint32 remove_mask) {
+int StoragePartitionImpl::GenerateQuotaClientMask(uint32_t remove_mask) {
int quota_client_mask = 0;
if (remove_mask & StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS)
@@ -224,16 +226,15 @@ int StoragePartitionImpl::GenerateQuotaClientMask(uint32 remove_mask) {
//
// Most of the operations in this class are done on IO thread.
struct StoragePartitionImpl::QuotaManagedDataDeletionHelper {
- QuotaManagedDataDeletionHelper(uint32 remove_mask,
- uint32 quota_storage_remove_mask,
+ QuotaManagedDataDeletionHelper(uint32_t remove_mask,
+ uint32_t quota_storage_remove_mask,
const GURL& storage_origin,
const base::Closure& callback)
: remove_mask(remove_mask),
quota_storage_remove_mask(quota_storage_remove_mask),
storage_origin(storage_origin),
callback(callback),
- task_count(0) {
- }
+ task_count(0) {}
void IncrementTaskCountOnIO();
void DecrementTaskCountOnIO();
@@ -255,8 +256,8 @@ struct StoragePartitionImpl::QuotaManagedDataDeletionHelper {
storage::StorageType quota_storage_type);
// All of these data are accessed on IO thread.
- uint32 remove_mask;
- uint32 quota_storage_remove_mask;
+ uint32_t remove_mask;
+ uint32_t quota_storage_remove_mask;
GURL storage_origin;
const base::Closure callback;
int task_count;
@@ -273,14 +274,13 @@ struct StoragePartitionImpl::QuotaManagedDataDeletionHelper {
// forwarded and updated on each (sub) deletion's callback. The instance is
// finally destroyed when deletion completes (and |callback| is invoked).
struct StoragePartitionImpl::DataDeletionHelper {
- DataDeletionHelper(uint32 remove_mask,
- uint32 quota_storage_remove_mask,
+ DataDeletionHelper(uint32_t remove_mask,
+ uint32_t quota_storage_remove_mask,
const base::Closure& callback)
- : remove_mask(remove_mask),
- quota_storage_remove_mask(quota_storage_remove_mask),
- callback(callback),
- task_count(0) {
- }
+ : remove_mask(remove_mask),
+ quota_storage_remove_mask(quota_storage_remove_mask),
+ callback(callback),
+ task_count(0) {}
void IncrementTaskCountOnUI();
void DecrementTaskCountOnUI();
@@ -306,8 +306,8 @@ struct StoragePartitionImpl::DataDeletionHelper {
const StoragePartition::OriginMatcherFunction& origin_matcher,
const base::Closure& callback);
- uint32 remove_mask;
- uint32 quota_storage_remove_mask;
+ uint32_t remove_mask;
+ uint32_t quota_storage_remove_mask;
// Accessed on UI thread.
const base::Closure callback;
@@ -592,8 +592,8 @@ BackgroundSyncContextImpl* StoragePartitionImpl::GetBackgroundSyncContext() {
}
void StoragePartitionImpl::ClearDataImpl(
- uint32 remove_mask,
- uint32 quota_storage_remove_mask,
+ uint32_t remove_mask,
+ uint32_t quota_storage_remove_mask,
const GURL& storage_origin,
const OriginMatcherFunction& origin_matcher,
net::URLRequestContextGetter* rq_context,
@@ -850,8 +850,8 @@ void StoragePartitionImpl::DataDeletionHelper::ClearDataOnUIThread(
}
void StoragePartitionImpl::ClearDataForOrigin(
- uint32 remove_mask,
- uint32 quota_storage_remove_mask,
+ uint32_t remove_mask,
+ uint32_t quota_storage_remove_mask,
const GURL& storage_origin,
net::URLRequestContextGetter* request_context_getter,
const base::Closure& callback) {
@@ -867,8 +867,8 @@ void StoragePartitionImpl::ClearDataForOrigin(
}
void StoragePartitionImpl::ClearData(
- uint32 remove_mask,
- uint32 quota_storage_remove_mask,
+ uint32_t remove_mask,
+ uint32_t quota_storage_remove_mask,
const GURL& storage_origin,
const OriginMatcherFunction& origin_matcher,
const base::Time begin,
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698