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

Unified Diff: content/browser/indexed_db/indexed_db_blob_info.cc

Issue 260783003: Some changes to support incognito mode, and some small cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo obsolete changes. Created 6 years, 8 months 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.cc
diff --git a/content/browser/indexed_db/indexed_db_blob_info.cc b/content/browser/indexed_db/indexed_db_blob_info.cc
index b20eb527227c7b672b75aecb3d24d22d80a9e900..2c7d9ec019c2e9cc4ddfa38e92c988edcfb18a3d 100644
--- a/content/browser/indexed_db/indexed_db_blob_info.cc
+++ b/content/browser/indexed_db/indexed_db_blob_info.cc
@@ -4,15 +4,15 @@
#include "content/browser/indexed_db/indexed_db_blob_info.h"
+#include "base/bind.h"
#include "base/logging.h"
#include "content/browser/indexed_db/indexed_db_leveldb_coding.h"
namespace content {
IndexedDBBlobInfo::IndexedDBBlobInfo()
- : is_file_(false),
- size_(-1),
- key_(DatabaseMetaDataKey::kInvalidBlobKey) {}
+ : is_file_(false), size_(-1), key_(DatabaseMetaDataKey::kInvalidBlobKey) {
+}
IndexedDBBlobInfo::~IndexedDBBlobInfo() {}
@@ -23,31 +23,33 @@ IndexedDBBlobInfo::IndexedDBBlobInfo(const std::string& uuid,
uuid_(uuid),
type_(type),
size_(size),
- key_(DatabaseMetaDataKey::kInvalidBlobKey) {}
+ key_(DatabaseMetaDataKey::kInvalidBlobKey) {
+}
IndexedDBBlobInfo::IndexedDBBlobInfo(const base::string16& type,
int64 size,
int64 key)
- : is_file_(false), type_(type), size_(size), key_(key) {}
+ : is_file_(false), type_(type), size_(size), key_(key) {
+}
-IndexedDBBlobInfo::IndexedDBBlobInfo(const base::FilePath& file_path,
+IndexedDBBlobInfo::IndexedDBBlobInfo(const std::string& uuid,
+ const base::FilePath& file_path,
const base::string16& file_name,
const base::string16& type)
: is_file_(true),
+ uuid_(uuid),
type_(type),
size_(-1),
file_name_(file_name),
file_path_(file_path),
- key_(DatabaseMetaDataKey::kInvalidBlobKey) {}
+ key_(DatabaseMetaDataKey::kInvalidBlobKey) {
+}
IndexedDBBlobInfo::IndexedDBBlobInfo(int64 key,
const base::string16& type,
const base::string16& file_name)
- : is_file_(true),
- type_(type),
- size_(-1),
- file_name_(file_name),
- key_(key) {}
+ : is_file_(true), type_(type), size_(-1), file_name_(file_name), key_(key) {
+}
void IndexedDBBlobInfo::set_size(int64 size) {
DCHECK_EQ(-1, size_);
« no previous file with comments | « content/browser/indexed_db/indexed_db_blob_info.h ('k') | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698