| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 5 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2367 storage::FileStreamWriter::CreateForLocalFile( | 2367 storage::FileStreamWriter::CreateForLocalFile( |
| 2368 task_runner_.get(), | 2368 task_runner_.get(), |
| 2369 file_path, | 2369 file_path, |
| 2370 0, | 2370 0, |
| 2371 storage::FileStreamWriter::CREATE_NEW_FILE)); | 2371 storage::FileStreamWriter::CREATE_NEW_FILE)); |
| 2372 scoped_ptr<FileWriterDelegate> delegate(new FileWriterDelegate( | 2372 scoped_ptr<FileWriterDelegate> delegate(new FileWriterDelegate( |
| 2373 writer.Pass(), storage::FlushPolicy::FLUSH_ON_COMPLETION)); | 2373 writer.Pass(), storage::FlushPolicy::FLUSH_ON_COMPLETION)); |
| 2374 | 2374 |
| 2375 DCHECK(blob_url.is_valid()); | 2375 DCHECK(blob_url.is_valid()); |
| 2376 scoped_ptr<net::URLRequest> blob_request(request_context->CreateRequest( | 2376 scoped_ptr<net::URLRequest> blob_request(request_context->CreateRequest( |
| 2377 blob_url, net::DEFAULT_PRIORITY, delegate.get(), NULL)); | 2377 blob_url, net::DEFAULT_PRIORITY, delegate.get())); |
| 2378 | 2378 |
| 2379 this->file_path_ = file_path; | 2379 this->file_path_ = file_path; |
| 2380 this->last_modified_ = last_modified; | 2380 this->last_modified_ = last_modified; |
| 2381 | 2381 |
| 2382 delegate->Start(blob_request.Pass(), | 2382 delegate->Start(blob_request.Pass(), |
| 2383 base::Bind(&LocalWriteClosure::Run, this)); | 2383 base::Bind(&LocalWriteClosure::Run, this)); |
| 2384 chained_blob_writer_->set_delegate(delegate.Pass()); | 2384 chained_blob_writer_->set_delegate(delegate.Pass()); |
| 2385 } | 2385 } |
| 2386 | 2386 |
| 2387 private: | 2387 private: |
| (...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4422 | 4422 |
| 4423 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( | 4423 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( |
| 4424 const WriteDescriptor& other) = default; | 4424 const WriteDescriptor& other) = default; |
| 4425 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() = | 4425 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() = |
| 4426 default; | 4426 default; |
| 4427 IndexedDBBackingStore::Transaction::WriteDescriptor& | 4427 IndexedDBBackingStore::Transaction::WriteDescriptor& |
| 4428 IndexedDBBackingStore::Transaction::WriteDescriptor:: | 4428 IndexedDBBackingStore::Transaction::WriteDescriptor:: |
| 4429 operator=(const WriteDescriptor& other) = default; | 4429 operator=(const WriteDescriptor& other) = default; |
| 4430 | 4430 |
| 4431 } // namespace content | 4431 } // namespace content |
| OLD | NEW |