| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class FileWriterBase; | 50 class FileWriterBase; |
| 51 | 51 |
| 52 PassRefPtr<DOMFileSystemSync> DOMFileSystemSync::create(DOMFileSystemBase* fileS
ystem) | 52 PassRefPtr<DOMFileSystemSync> DOMFileSystemSync::create(DOMFileSystemBase* fileS
ystem) |
| 53 { | 53 { |
| 54 return adoptRef(new DOMFileSystemSync(fileSystem->m_context, fileSystem->nam
e(), fileSystem->type(), fileSystem->rootURL(), fileSystem->m_asyncFileSystem.re
lease())); | 54 return adoptRef(new DOMFileSystemSync(fileSystem->m_context, fileSystem->nam
e(), fileSystem->type(), fileSystem->rootURL(), fileSystem->m_asyncFileSystem.re
lease())); |
| 55 } | 55 } |
| 56 | 56 |
| 57 DOMFileSystemSync::DOMFileSystemSync(ScriptExecutionContext* context, const Stri
ng& name, FileSystemType type, const KURL& rootURL, PassOwnPtr<AsyncFileSystem>
asyncFileSystem) | 57 DOMFileSystemSync::DOMFileSystemSync(ScriptExecutionContext* context, const Stri
ng& name, FileSystemType type, const KURL& rootURL, PassOwnPtr<AsyncFileSystem>
asyncFileSystem) |
| 58 : DOMFileSystemBase(context, name, type, rootURL, asyncFileSystem) | 58 : DOMFileSystemBase(context, name, type, rootURL, asyncFileSystem) |
| 59 { | 59 { |
| 60 ScriptWrappable::init(this); |
| 60 } | 61 } |
| 61 | 62 |
| 62 DOMFileSystemSync::~DOMFileSystemSync() | 63 DOMFileSystemSync::~DOMFileSystemSync() |
| 63 { | 64 { |
| 64 } | 65 } |
| 65 | 66 |
| 66 PassRefPtr<DirectoryEntrySync> DOMFileSystemSync::root() | 67 PassRefPtr<DirectoryEntrySync> DOMFileSystemSync::root() |
| 67 { | 68 { |
| 68 return DirectoryEntrySync::create(this, DOMFilePath::root); | 69 return DirectoryEntrySync::create(this, DOMFilePath::root); |
| 69 } | 70 } |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 ASSERT(!successCallback->fileWriterBase()); | 254 ASSERT(!successCallback->fileWriterBase()); |
| 254 ec = FileException::ErrorCodeToExceptionCode(errorCallback->error()->cod
e()); | 255 ec = FileException::ErrorCodeToExceptionCode(errorCallback->error()->cod
e()); |
| 255 return 0; | 256 return 0; |
| 256 } | 257 } |
| 257 ASSERT(successCallback->fileWriterBase()); | 258 ASSERT(successCallback->fileWriterBase()); |
| 258 ASSERT(static_cast<FileWriterSync*>(successCallback->fileWriterBase()) == fi
leWriter.get()); | 259 ASSERT(static_cast<FileWriterSync*>(successCallback->fileWriterBase()) == fi
leWriter.get()); |
| 259 return fileWriter; | 260 return fileWriter; |
| 260 } | 261 } |
| 261 | 262 |
| 262 } | 263 } |
| OLD | NEW |