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

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

Issue 2388423003: reflow comments in modules/[fetch,indexeddb] (Closed)
Patch Set: rebase Created 4 years, 2 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 m_name(name), 380 m_name(name),
381 m_url(url), 381 m_url(url),
382 m_successCallback(successCallback) {} 382 m_successCallback(successCallback) {}
383 383
384 void SnapshotFileCallback::didCreateSnapshotFile( 384 void SnapshotFileCallback::didCreateSnapshotFile(
385 const FileMetadata& metadata, 385 const FileMetadata& metadata,
386 PassRefPtr<BlobDataHandle> snapshot) { 386 PassRefPtr<BlobDataHandle> snapshot) {
387 if (!m_successCallback) 387 if (!m_successCallback)
388 return; 388 return;
389 389
390 // We can't directly use the snapshot blob data handle because the content typ e on it hasn't been set. 390 // We can't directly use the snapshot blob data handle because the content
391 // The |snapshot| param is here to provide a a chain of custody thru thread br idging that is held onto until 391 // type on it hasn't been set. The |snapshot| param is here to provide a a
392 // *after* we've coined a File with a new handle that has the correct type set on it. This allows the 392 // chain of custody thru thread bridging that is held onto until *after* we've
393 // blob storage system to track when a temp file can and can't be safely delet ed. 393 // coined a File with a new handle that has the correct type set on it. This
394 // allows the blob storage system to track when a temp file can and can't be
395 // safely deleted.
394 396
395 handleEventOrScheduleCallback( 397 handleEventOrScheduleCallback(
396 m_successCallback.release(), 398 m_successCallback.release(),
397 DOMFileSystemBase::createFile(metadata, m_url, m_fileSystem->type(), 399 DOMFileSystemBase::createFile(metadata, m_url, m_fileSystem->type(),
398 m_name)); 400 m_name));
399 } 401 }
400 402
401 // VoidCallbacks -------------------------------------------------------------- 403 // VoidCallbacks --------------------------------------------------------------
402 404
403 std::unique_ptr<AsyncFileSystemCallbacks> VoidCallbacks::create( 405 std::unique_ptr<AsyncFileSystemCallbacks> VoidCallbacks::create(
(...skipping 11 matching lines...) Expand all
415 DOMFileSystemBase* fileSystem) 417 DOMFileSystemBase* fileSystem)
416 : FileSystemCallbacksBase(errorCallback, fileSystem, context), 418 : FileSystemCallbacksBase(errorCallback, fileSystem, context),
417 m_successCallback(successCallback) {} 419 m_successCallback(successCallback) {}
418 420
419 void VoidCallbacks::didSucceed() { 421 void VoidCallbacks::didSucceed() {
420 if (m_successCallback) 422 if (m_successCallback)
421 handleEventOrScheduleCallback(m_successCallback.release()); 423 handleEventOrScheduleCallback(m_successCallback.release());
422 } 424 }
423 425
424 } // namespace blink 426 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698