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

Side by Side Diff: content/browser/indexed_db/indexed_db_backing_store.cc

Issue 1003953008: Remove prerender cookie store, part 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-revert-cookie-store-3
Patch Set: rebase (just in case since this is so huge) Created 5 years, 9 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/fileapi/file_writer_delegate_unittest.cc ('k') | content/browser/loader/buffered_resource_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698