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

Unified Diff: content/browser/appcache/appcache_entry.h

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/appcache/appcache_dispatcher_host.cc ('k') | content/browser/appcache/appcache_group.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_entry.h
diff --git a/content/browser/appcache/appcache_entry.h b/content/browser/appcache/appcache_entry.h
index 7aaf42581eab8eb54605e869e524cd6632ccf393..3c3b89ea77256699f6948e38332b19a47067c057 100644
--- a/content/browser/appcache/appcache_entry.h
+++ b/content/browser/appcache/appcache_entry.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_ENTRY_H_
#define CONTENT_BROWSER_APPCACHE_APPCACHE_ENTRY_H_
+#include <stdint.h>
+
#include "content/common/appcache_interfaces.h"
namespace content {
@@ -33,11 +35,13 @@ class AppCacheEntry {
explicit AppCacheEntry(int type)
: types_(type), response_id_(kAppCacheNoResponseId), response_size_(0) {}
- AppCacheEntry(int type, int64 response_id)
- : types_(type), response_id_(response_id), response_size_(0) {}
+ AppCacheEntry(int type, int64_t response_id)
+ : types_(type), response_id_(response_id), response_size_(0) {}
- AppCacheEntry(int type, int64 response_id, int64 response_size)
- : types_(type), response_id_(response_id), response_size_(response_size) {}
+ AppCacheEntry(int type, int64_t response_id, int64_t response_size)
+ : types_(type),
+ response_id_(response_id),
+ response_size_(response_size) {}
int types() const { return types_; }
void add_types(int added_types) { types_ |= added_types; }
@@ -49,17 +53,17 @@ class AppCacheEntry {
bool IsIntercept() const { return (types_ & INTERCEPT) != 0; }
bool IsExecutable() const { return (types_ & EXECUTABLE) != 0; }
- int64 response_id() const { return response_id_; }
- void set_response_id(int64 id) { response_id_ = id; }
+ int64_t response_id() const { return response_id_; }
+ void set_response_id(int64_t id) { response_id_ = id; }
bool has_response_id() const { return response_id_ != kAppCacheNoResponseId; }
- int64 response_size() const { return response_size_; }
- void set_response_size(int64 size) { response_size_ = size; }
+ int64_t response_size() const { return response_size_; }
+ void set_response_size(int64_t size) { response_size_ = size; }
private:
int types_;
- int64 response_id_;
- int64 response_size_;
+ int64_t response_id_;
+ int64_t response_size_;
};
} // namespace content
« no previous file with comments | « content/browser/appcache/appcache_dispatcher_host.cc ('k') | content/browser/appcache/appcache_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698