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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 class FileWriterBase; | 51 class FileWriterBase; |
52 | 52 |
53 DOMFileSystemSync* DOMFileSystemSync::create(DOMFileSystemBase* fileSystem) | 53 DOMFileSystemSync* DOMFileSystemSync::create(DOMFileSystemBase* fileSystem) |
54 { | 54 { |
55 return new DOMFileSystemSync(fileSystem->m_context, fileSystem->name(), file
System->type(), fileSystem->rootURL()); | 55 return new DOMFileSystemSync(fileSystem->m_context, fileSystem->name(), file
System->type(), fileSystem->rootURL()); |
56 } | 56 } |
57 | 57 |
58 DOMFileSystemSync::DOMFileSystemSync(ExecutionContext* context, const String& na
me, FileSystemType type, const KURL& rootURL) | 58 DOMFileSystemSync::DOMFileSystemSync(ExecutionContext* context, const String& na
me, FileSystemType type, const KURL& rootURL) |
59 : DOMFileSystemBase(context, name, type, rootURL) | 59 : DOMFileSystemBase(context, name, type, rootURL) |
60 { | 60 { |
61 ScriptWrappable::init(this); | |
62 } | 61 } |
63 | 62 |
64 DOMFileSystemSync::~DOMFileSystemSync() | 63 DOMFileSystemSync::~DOMFileSystemSync() |
65 { | 64 { |
66 } | 65 } |
67 | 66 |
68 void DOMFileSystemSync::reportError(PassOwnPtrWillBeRawPtr<ErrorCallback> errorC
allback, PassRefPtrWillBeRawPtr<FileError> fileError) | 67 void DOMFileSystemSync::reportError(PassOwnPtrWillBeRawPtr<ErrorCallback> errorC
allback, PassRefPtrWillBeRawPtr<FileError> fileError) |
69 { | 68 { |
70 errorCallback->handleEvent(fileError.get()); | 69 errorCallback->handleEvent(fileError.get()); |
71 } | 70 } |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 231 |
233 fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter, c
allbacks.release()); | 232 fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter, c
allbacks.release()); |
234 if (errorCode != FileError::OK) { | 233 if (errorCode != FileError::OK) { |
235 FileError::throwDOMException(exceptionState, errorCode); | 234 FileError::throwDOMException(exceptionState, errorCode); |
236 return 0; | 235 return 0; |
237 } | 236 } |
238 return fileWriter; | 237 return fileWriter; |
239 } | 238 } |
240 | 239 |
241 } | 240 } |
OLD | NEW |