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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/FileSystemCallbacks.cpp

Issue 2810513002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/filesystem (Closed)
Patch Set: split Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 ErrorCallbackBase* error_callback, 209 ErrorCallbackBase* error_callback,
210 ExecutionContext* context, 210 ExecutionContext* context,
211 DirectoryReaderBase* directory_reader, 211 DirectoryReaderBase* directory_reader,
212 const String& base_path) 212 const String& base_path)
213 : FileSystemCallbacksBase(error_callback, 213 : FileSystemCallbacksBase(error_callback,
214 directory_reader->Filesystem(), 214 directory_reader->Filesystem(),
215 context), 215 context),
216 success_callback_(success_callback), 216 success_callback_(success_callback),
217 directory_reader_(directory_reader), 217 directory_reader_(directory_reader),
218 base_path_(base_path) { 218 base_path_(base_path) {
219 ASSERT(directory_reader_); 219 DCHECK(directory_reader_);
220 } 220 }
221 221
222 void EntriesCallbacks::DidReadDirectoryEntry(const String& name, 222 void EntriesCallbacks::DidReadDirectoryEntry(const String& name,
223 bool is_directory) { 223 bool is_directory) {
224 if (is_directory) 224 if (is_directory)
225 entries_.push_back( 225 entries_.push_back(
226 DirectoryEntry::Create(directory_reader_->Filesystem(), 226 DirectoryEntry::Create(directory_reader_->Filesystem(),
227 DOMFilePath::Append(base_path_, name))); 227 DOMFilePath::Append(base_path_, name)));
228 else 228 else
229 entries_.push_back( 229 entries_.push_back(
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 DOMFileSystemBase* file_system) 422 DOMFileSystemBase* file_system)
423 : FileSystemCallbacksBase(error_callback, file_system, context), 423 : FileSystemCallbacksBase(error_callback, file_system, context),
424 success_callback_(success_callback) {} 424 success_callback_(success_callback) {}
425 425
426 void VoidCallbacks::DidSucceed() { 426 void VoidCallbacks::DidSucceed() {
427 if (success_callback_) 427 if (success_callback_)
428 HandleEventOrScheduleCallback(success_callback_.Release()); 428 HandleEventOrScheduleCallback(success_callback_.Release());
429 } 429 }
430 430
431 } // namespace blink 431 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698