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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 public: | 82 public: |
83 static CreateFileResult* create() | 83 static CreateFileResult* create() |
84 { | 84 { |
85 return new CreateFileResult(); | 85 return new CreateFileResult(); |
86 } | 86 } |
87 | 87 |
88 bool m_failed; | 88 bool m_failed; |
89 int m_code; | 89 int m_code; |
90 Member<File> m_file; | 90 Member<File> m_file; |
91 | 91 |
92 void trace(Visitor* visitor) | 92 DEFINE_INLINE_TRACE() |
93 { | 93 { |
94 visitor->trace(m_file); | 94 visitor->trace(m_file); |
95 } | 95 } |
96 | 96 |
97 private: | 97 private: |
98 CreateFileResult() | 98 CreateFileResult() |
99 : m_failed(false) | 99 : m_failed(false) |
100 , m_code(0) | 100 , m_code(0) |
101 { | 101 { |
102 } | 102 } |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter, c
allbacks.release()); | 219 fileSystem()->createFileWriter(createFileSystemURL(fileEntry), fileWriter, c
allbacks.release()); |
220 if (errorCode != FileError::OK) { | 220 if (errorCode != FileError::OK) { |
221 FileError::throwDOMException(exceptionState, errorCode); | 221 FileError::throwDOMException(exceptionState, errorCode); |
222 return 0; | 222 return 0; |
223 } | 223 } |
224 return fileWriter; | 224 return fileWriter; |
225 } | 225 } |
226 | 226 |
227 } | 227 } |
OLD | NEW |