| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 virtual ~DOMFileSystemBase(); | 74 virtual ~DOMFileSystemBase(); |
| 75 | 75 |
| 76 // These are called when a new callback is created and resolved in | 76 // These are called when a new callback is created and resolved in |
| 77 // FileSystem API, so that subclasses can track the number of pending | 77 // FileSystem API, so that subclasses can track the number of pending |
| 78 // callbacks if necessary. | 78 // callbacks if necessary. |
| 79 virtual void addPendingCallbacks() { } | 79 virtual void addPendingCallbacks() { } |
| 80 virtual void removePendingCallbacks() { } | 80 virtual void removePendingCallbacks() { } |
| 81 | 81 |
| 82 // Overridden by subclasses to handle sync vs async error-handling. | 82 // Overridden by subclasses to handle sync vs async error-handling. |
| 83 virtual void reportError(PassOwnPtr<ErrorCallback>, PassRefPtr<FileError>) =
0; | 83 virtual void reportError(PassOwnPtr<ErrorCallback>, PassRefPtrWillBeRawPtr<F
ileError>) = 0; |
| 84 | 84 |
| 85 const String& name() const { return m_name; } | 85 const String& name() const { return m_name; } |
| 86 FileSystemType type() const { return m_type; } | 86 FileSystemType type() const { return m_type; } |
| 87 KURL rootURL() const { return m_filesystemRootURL; } | 87 KURL rootURL() const { return m_filesystemRootURL; } |
| 88 blink::WebFileSystem* fileSystem() const; | 88 blink::WebFileSystem* fileSystem() const; |
| 89 SecurityOrigin* securityOrigin() const; | 89 SecurityOrigin* securityOrigin() const; |
| 90 | 90 |
| 91 // The clonable flag is used in the structured clone algorithm to test | 91 // The clonable flag is used in the structured clone algorithm to test |
| 92 // whether the FileSystem API object is permitted to be cloned. It defaults | 92 // whether the FileSystem API object is permitted to be cloned. It defaults |
| 93 // to false, and must be explicitly set by internal code permit cloning. | 93 // to false, and must be explicitly set by internal code permit cloning. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 123 FileSystemType m_type; | 123 FileSystemType m_type; |
| 124 KURL m_filesystemRootURL; | 124 KURL m_filesystemRootURL; |
| 125 bool m_clonable; | 125 bool m_clonable; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 inline bool operator==(const DOMFileSystemBase& a, const DOMFileSystemBase& b) {
return a.name() == b.name() && a.type() == b.type() && a.rootURL() == b.rootURL
(); } | 128 inline bool operator==(const DOMFileSystemBase& a, const DOMFileSystemBase& b) {
return a.name() == b.name() && a.type() == b.type() && a.rootURL() == b.rootURL
(); } |
| 129 | 129 |
| 130 } // namespace WebCore | 130 } // namespace WebCore |
| 131 | 131 |
| 132 #endif // DOMFileSystemBase_h | 132 #endif // DOMFileSystemBase_h |
| OLD | NEW |