OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |