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

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

Issue 1081413004: [content] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « content/browser/histogram_message_filter.cc ('k') | content/browser/theme_helper_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2344 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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/histogram_message_filter.cc ('k') | content/browser/theme_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698