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

Unified Diff: content/browser/indexed_db/indexed_db_blob_info.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
Index: content/browser/indexed_db/indexed_db_blob_info.h
diff --git a/content/browser/indexed_db/indexed_db_blob_info.h b/content/browser/indexed_db/indexed_db_blob_info.h
index 60da7076a707ea0941dc84ac80ebc4d52b025157..c54e065d943ac9af8f9fe34fc4a41768fb6bcd34 100644
--- a/content/browser/indexed_db/indexed_db_blob_info.h
+++ b/content/browser/indexed_db/indexed_db_blob_info.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_
#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BLOB_INFO_H_
+#include <stdint.h>
+
#include <string>
#include "base/callback.h"
@@ -22,14 +24,14 @@ class CONTENT_EXPORT IndexedDBBlobInfo {
// These two are used for Blobs.
IndexedDBBlobInfo(const std::string& uuid,
const base::string16& type,
- int64 size);
- IndexedDBBlobInfo(const base::string16& type, int64 size, int64 key);
+ int64_t size);
+ IndexedDBBlobInfo(const base::string16& type, int64_t size, int64_t key);
// These two are used for Files.
IndexedDBBlobInfo(const std::string& uuid,
const base::FilePath& file_path,
const base::string16& file_name,
const base::string16& type);
- IndexedDBBlobInfo(int64 key,
+ IndexedDBBlobInfo(int64_t key,
const base::string16& type,
const base::string16& file_name);
@@ -40,9 +42,9 @@ class CONTENT_EXPORT IndexedDBBlobInfo {
bool is_file() const { return is_file_; }
const std::string& uuid() const { return uuid_; }
const base::string16& type() const { return type_; }
- int64 size() const { return size_; }
+ int64_t size() const { return size_; }
const base::string16& file_name() const { return file_name_; }
- int64 key() const { return key_; }
+ int64_t key() const { return key_; }
const base::FilePath& file_path() const { return file_path_; }
const base::Time& last_modified() const { return last_modified_; }
const base::Closure& mark_used_callback() const {
@@ -50,11 +52,11 @@ class CONTENT_EXPORT IndexedDBBlobInfo {
}
const ReleaseCallback& release_callback() const { return release_callback_; }
- void set_size(int64 size);
+ void set_size(int64_t size);
void set_uuid(const std::string& uuid);
void set_file_path(const base::FilePath& file_path);
void set_last_modified(const base::Time& time);
- void set_key(int64 key);
+ void set_key(int64_t key);
void set_mark_used_callback(const base::Closure& mark_used_callback);
void set_release_callback(const ReleaseCallback& release_callback);
@@ -62,13 +64,13 @@ class CONTENT_EXPORT IndexedDBBlobInfo {
bool is_file_;
std::string uuid_; // Always for Blob; sometimes for File.
base::string16 type_; // Mime type.
- int64 size_; // -1 if unknown for File.
+ int64_t size_; // -1 if unknown for File.
base::string16 file_name_; // Only for File.
base::FilePath file_path_; // Only for File.
base::Time last_modified_; // Only for File; valid only if size is.
// Valid only when this comes out of the database.
- int64 key_;
+ int64_t key_;
base::Closure mark_used_callback_;
ReleaseCallback release_callback_;
};
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store_unittest.cc ('k') | content/browser/indexed_db/indexed_db_blob_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698