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 2344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2355 chained_blob_writer_, | 2355 chained_blob_writer_, |
2356 success, | 2356 success, |
2357 bytes_written_)); | 2357 bytes_written_)); |
2358 } | 2358 } |
2359 } | 2359 } |
2360 | 2360 |
2361 void WriteBlobToFileOnIOThread(const FilePath& file_path, | 2361 void WriteBlobToFileOnIOThread(const FilePath& file_path, |
2362 const GURL& blob_url, | 2362 const GURL& blob_url, |
2363 const base::Time& last_modified, | 2363 const base::Time& last_modified, |
2364 net::URLRequestContext* request_context) { | 2364 net::URLRequestContext* request_context) { |
2365 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); | 2365 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
2366 scoped_ptr<storage::FileStreamWriter> writer( | 2366 scoped_ptr<storage::FileStreamWriter> writer( |
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()); |
(...skipping 2046 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 |