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

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: 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 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after
2363 storage::FileStreamWriter::CreateForLocalFile( 2363 storage::FileStreamWriter::CreateForLocalFile(
2364 task_runner_.get(), 2364 task_runner_.get(),
2365 file_path, 2365 file_path,
2366 0, 2366 0,
2367 storage::FileStreamWriter::CREATE_NEW_FILE)); 2367 storage::FileStreamWriter::CREATE_NEW_FILE));
2368 scoped_ptr<FileWriterDelegate> delegate(new FileWriterDelegate( 2368 scoped_ptr<FileWriterDelegate> delegate(new FileWriterDelegate(
2369 writer.Pass(), storage::FlushPolicy::FLUSH_ON_COMPLETION)); 2369 writer.Pass(), storage::FlushPolicy::FLUSH_ON_COMPLETION));
2370 2370
2371 DCHECK(blob_url.is_valid()); 2371 DCHECK(blob_url.is_valid());
2372 scoped_ptr<net::URLRequest> blob_request(request_context->CreateRequest( 2372 scoped_ptr<net::URLRequest> blob_request(request_context->CreateRequest(
2373 blob_url, net::DEFAULT_PRIORITY, delegate.get(), NULL)); 2373 blob_url, net::DEFAULT_PRIORITY, delegate.get()));
2374 2374
2375 this->file_path_ = file_path; 2375 this->file_path_ = file_path;
2376 this->last_modified_ = last_modified; 2376 this->last_modified_ = last_modified;
2377 2377
2378 delegate->Start(blob_request.Pass(), 2378 delegate->Start(blob_request.Pass(),
2379 base::Bind(&LocalWriteClosure::Run, this)); 2379 base::Bind(&LocalWriteClosure::Run, this));
2380 chained_blob_writer_->set_delegate(delegate.Pass()); 2380 chained_blob_writer_->set_delegate(delegate.Pass());
2381 } 2381 }
2382 2382
2383 private: 2383 private:
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after
4404 4404
4405 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor( 4405 IndexedDBBackingStore::Transaction::WriteDescriptor::WriteDescriptor(
4406 const WriteDescriptor& other) = default; 4406 const WriteDescriptor& other) = default;
4407 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() = 4407 IndexedDBBackingStore::Transaction::WriteDescriptor::~WriteDescriptor() =
4408 default; 4408 default;
4409 IndexedDBBackingStore::Transaction::WriteDescriptor& 4409 IndexedDBBackingStore::Transaction::WriteDescriptor&
4410 IndexedDBBackingStore::Transaction::WriteDescriptor:: 4410 IndexedDBBackingStore::Transaction::WriteDescriptor::
4411 operator=(const WriteDescriptor& other) = default; 4411 operator=(const WriteDescriptor& other) = default;
4412 4412
4413 } // namespace content 4413 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698