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

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

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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_backing_store.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store.cc b/content/browser/indexed_db/indexed_db_backing_store.cc
index 93db0512ed2eb12c89a66943cfd2900caa9b6cdc..134beee9b5136f11d9332dac5973414ee1ef6251 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store.cc
@@ -35,15 +35,15 @@
#include "third_party/WebKit/public/platform/WebIDBTypes.h"
#include "third_party/WebKit/public/web/WebSerializedScriptValueVersion.h"
#include "third_party/leveldatabase/env_chromium.h"
-#include "webkit/browser/blob/blob_data_handle.h"
-#include "webkit/browser/fileapi/file_stream_writer.h"
-#include "webkit/browser/fileapi/file_writer_delegate.h"
-#include "webkit/browser/fileapi/local_file_stream_writer.h"
-#include "webkit/common/database/database_identifier.h"
+#include "storage/browser/blob/blob_data_handle.h"
+#include "storage/browser/fileapi/file_stream_writer.h"
+#include "storage/browser/fileapi/file_writer_delegate.h"
+#include "storage/browser/fileapi/local_file_stream_writer.h"
+#include "storage/common/database/database_identifier.h"
using base::FilePath;
using base::StringPiece;
-using fileapi::FileWriterDelegate;
+using storage::FileWriterDelegate;
namespace content {
@@ -1901,7 +1901,7 @@ leveldb::Status IndexedDBBackingStore::PutRecord(
int64 object_store_id,
const IndexedDBKey& key,
IndexedDBValue* value,
- ScopedVector<webkit_blob::BlobDataHandle>* handles,
+ ScopedVector<storage::BlobDataHandle>* handles,
RecordIdentifier* record_identifier) {
IDB_TRACE("IndexedDBBackingStore::PutRecord");
if (!KeyPrefix::ValidIds(database_id, object_store_id))
@@ -2314,10 +2314,12 @@ class LocalWriteClosure : public FileWriterDelegate::DelegateWriteCallback,
const GURL& blob_url,
net::URLRequestContext* request_context) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
- scoped_ptr<fileapi::FileStreamWriter> writer(
- fileapi::FileStreamWriter::CreateForLocalFile(
- task_runner_, file_path, 0,
- fileapi::FileStreamWriter::CREATE_NEW_FILE));
+ scoped_ptr<storage::FileStreamWriter> writer(
+ storage::FileStreamWriter::CreateForLocalFile(
+ task_runner_,
+ file_path,
+ 0,
+ storage::FileStreamWriter::CREATE_NEW_FILE));
scoped_ptr<FileWriterDelegate> delegate(
new FileWriterDelegate(writer.Pass(),
FileWriterDelegate::FLUSH_ON_COMPLETION));
@@ -4201,7 +4203,7 @@ void IndexedDBBackingStore::BlobChangeRecord::SetBlobInfo(
}
void IndexedDBBackingStore::BlobChangeRecord::SetHandles(
- ScopedVector<webkit_blob::BlobDataHandle>* handles) {
+ ScopedVector<storage::BlobDataHandle>* handles) {
handles_.clear();
if (handles)
handles_.swap(*handles);
@@ -4213,9 +4215,9 @@ IndexedDBBackingStore::BlobChangeRecord::Clone() const {
new BlobChangeRecord(key_, object_store_id_));
record->blob_info_ = blob_info_;
- ScopedVector<webkit_blob::BlobDataHandle>::const_iterator iter;
+ ScopedVector<storage::BlobDataHandle>::const_iterator iter;
for (iter = handles_.begin(); iter != handles_.end(); ++iter)
- record->handles_.push_back(new webkit_blob::BlobDataHandle(**iter));
+ record->handles_.push_back(new storage::BlobDataHandle(**iter));
return record.Pass();
}
@@ -4224,7 +4226,7 @@ leveldb::Status IndexedDBBackingStore::Transaction::PutBlobInfoIfNeeded(
int64 object_store_id,
const std::string& object_store_data_key,
std::vector<IndexedDBBlobInfo>* blob_info,
- ScopedVector<webkit_blob::BlobDataHandle>* handles) {
+ ScopedVector<storage::BlobDataHandle>* handles) {
if (!blob_info || blob_info->empty()) {
blob_change_map_.erase(object_store_data_key);
incognito_blob_map_.erase(object_store_data_key);
@@ -4259,7 +4261,7 @@ void IndexedDBBackingStore::Transaction::PutBlobInfo(
int64 object_store_id,
const std::string& object_store_data_key,
std::vector<IndexedDBBlobInfo>* blob_info,
- ScopedVector<webkit_blob::BlobDataHandle>* handles) {
+ ScopedVector<storage::BlobDataHandle>* handles) {
DCHECK_GT(object_store_data_key.size(), 0UL);
if (database_id_ < 0)
database_id_ = database_id;
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.h ('k') | content/browser/indexed_db/indexed_db_backing_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698