| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 visitor->trace(m_file); | 95 visitor->trace(m_file); |
| 96 } | 96 } |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 CreateFileResult() | 99 CreateFileResult() |
| 100 : m_failed(false) | 100 : m_failed(false) |
| 101 , m_code(0) | 101 , m_code(0) |
| 102 { | 102 { |
| 103 } | 103 } |
| 104 | 104 |
| 105 #if !ENABLE(OILPAN) |
| 105 ~CreateFileResult() | 106 ~CreateFileResult() |
| 106 { | 107 { |
| 107 } | 108 } |
| 109 #endif |
| 110 |
| 108 friend class RefCountedWillBeGarbageCollected<CreateFileResult>; | 111 friend class RefCountedWillBeGarbageCollected<CreateFileResult>; |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtrWillBeRawPtr<Cr
eateFileResult> result, const String& name, const KURL& url, FileSystemType type
) | 114 static PassOwnPtr<AsyncFileSystemCallbacks> create(PassRefPtrWillBeRawPtr<Cr
eateFileResult> result, const String& name, const KURL& url, FileSystemType type
) |
| 112 { | 115 { |
| 113 return adoptPtr(static_cast<AsyncFileSystemCallbacks*>(new CreateFileHel
per(result, name, url, type))); | 116 return adoptPtr(static_cast<AsyncFileSystemCallbacks*>(new CreateFileHel
per(result, name, url, type))); |
| 114 } | 117 } |
| 115 | 118 |
| 116 virtual void didFail(int code) OVERRIDE | 119 virtual void didFail(int code) OVERRIDE |
| 117 { | 120 { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 240 |
| 238 fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter.ge
t(), callbacks.release()); | 241 fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter.ge
t(), callbacks.release()); |
| 239 if (errorCode != FileError::OK) { | 242 if (errorCode != FileError::OK) { |
| 240 FileError::throwDOMException(exceptionState, errorCode); | 243 FileError::throwDOMException(exceptionState, errorCode); |
| 241 return nullptr; | 244 return nullptr; |
| 242 } | 245 } |
| 243 return fileWriter.release(); | 246 return fileWriter.release(); |
| 244 } | 247 } |
| 245 | 248 |
| 246 } | 249 } |
| OLD | NEW |