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

Side by Side Diff: Source/modules/filesystem/DOMFileSystemBase.cpp

Issue 188503002: Oilpan: add transition types to FileSystem APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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 /* 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 OwnPtr<AsyncFileSystemCallbacks> callbacks(EntryCallbacks::create(successCal lback, errorCallback, this, absolutePath, true)); 314 OwnPtr<AsyncFileSystemCallbacks> callbacks(EntryCallbacks::create(successCal lback, errorCallback, this, absolutePath, true));
315 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous); 315 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous);
316 316
317 if (flags.create) 317 if (flags.create)
318 fileSystem()->createDirectory(createFileSystemURL(absolutePath), flags.e xclusive, callbacks.release()); 318 fileSystem()->createDirectory(createFileSystemURL(absolutePath), flags.e xclusive, callbacks.release());
319 else 319 else
320 fileSystem()->directoryExists(createFileSystemURL(absolutePath), callbac ks.release()); 320 fileSystem()->directoryExists(createFileSystemURL(absolutePath), callbac ks.release());
321 } 321 }
322 322
323 int DOMFileSystemBase::readDirectory(PassRefPtr<DirectoryReaderBase> reader, con st String& path, PassOwnPtr<EntriesCallback> successCallback, PassOwnPtr<ErrorCa llback> errorCallback, SynchronousType synchronousType) 323 bool DOMFileSystemBase::readDirectory(PassRefPtrWillBeRawPtr<DirectoryReaderBase > reader, const String& path, PassOwnPtr<EntriesCallback> successCallback, PassO wnPtr<ErrorCallback> errorCallback, SynchronousType synchronousType)
324 { 324 {
325 ASSERT(DOMFilePath::isAbsolute(path)); 325 ASSERT(DOMFilePath::isAbsolute(path));
326 326
327 OwnPtr<AsyncFileSystemCallbacks> callbacks(EntriesCallbacks::create(successC allback, errorCallback, reader, path)); 327 OwnPtr<AsyncFileSystemCallbacks> callbacks(EntriesCallbacks::create(successC allback, errorCallback, reader, path));
328 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous); 328 callbacks->setShouldBlockUntilCompletion(synchronousType == Synchronous);
329 329
330 return fileSystem()->readDirectory(createFileSystemURL(path), callbacks.rele ase()); 330 return fileSystem()->readDirectory(createFileSystemURL(path), callbacks.rele ase());
331 } 331 }
332 332
333 bool DOMFileSystemBase::waitForAdditionalResult(int callbacksId) 333 bool DOMFileSystemBase::waitForAdditionalResult(int callbacksId)
334 { 334 {
335 return fileSystem()->waitForAdditionalResult(callbacksId); 335 return fileSystem()->waitForAdditionalResult(callbacksId);
336 } 336 }
337 337
338 } // namespace WebCore 338 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/filesystem/DOMFileSystemBase.h ('k') | Source/modules/filesystem/DOMFileSystemSync.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698