OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 bool isDirectory) { | 137 bool isDirectory) { |
138 ASSERT(!m_private.isNull()); | 138 ASSERT(!m_private.isNull()); |
139 m_private->callbacks()->didResolveURL( | 139 m_private->callbacks()->didResolveURL( |
140 name, rootURL, static_cast<FileSystemType>(type), filePath, isDirectory); | 140 name, rootURL, static_cast<FileSystemType>(type), filePath, isDirectory); |
141 m_private.reset(); | 141 m_private.reset(); |
142 } | 142 } |
143 | 143 |
144 void WebFileSystemCallbacks::didCreateFileWriter(WebFileWriter* webFileWriter, | 144 void WebFileSystemCallbacks::didCreateFileWriter(WebFileWriter* webFileWriter, |
145 long long length) { | 145 long long length) { |
146 ASSERT(!m_private.isNull()); | 146 ASSERT(!m_private.isNull()); |
147 m_private->callbacks()->didCreateFileWriter(wrapUnique(webFileWriter), | 147 m_private->callbacks()->didCreateFileWriter(WTF::wrapUnique(webFileWriter), |
148 length); | 148 length); |
149 m_private.reset(); | 149 m_private.reset(); |
150 } | 150 } |
151 | 151 |
152 void WebFileSystemCallbacks::didFail(WebFileError error) { | 152 void WebFileSystemCallbacks::didFail(WebFileError error) { |
153 ASSERT(!m_private.isNull()); | 153 ASSERT(!m_private.isNull()); |
154 m_private->callbacks()->didFail(error); | 154 m_private->callbacks()->didFail(error); |
155 m_private.reset(); | 155 m_private.reset(); |
156 } | 156 } |
157 | 157 |
158 bool WebFileSystemCallbacks::shouldBlockUntilCompletion() const { | 158 bool WebFileSystemCallbacks::shouldBlockUntilCompletion() const { |
159 ASSERT(!m_private.isNull()); | 159 ASSERT(!m_private.isNull()); |
160 return m_private->callbacks()->shouldBlockUntilCompletion(); | 160 return m_private->callbacks()->shouldBlockUntilCompletion(); |
161 } | 161 } |
162 | 162 |
163 } // namespace blink | 163 } // namespace blink |
OLD | NEW |