| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class WebFileSystemCallbacksImpl : public WebFileSystemCallbacks { | 53 class WebFileSystemCallbacksImpl : public WebFileSystemCallbacks { |
| 54 public: | 54 public: |
| 55 WebFileSystemCallbacksImpl(PassOwnPtr<WebCore::AsyncFileSystemCallbacks>); | 55 WebFileSystemCallbacksImpl(PassOwnPtr<WebCore::AsyncFileSystemCallbacks>); |
| 56 virtual ~WebFileSystemCallbacksImpl(); | 56 virtual ~WebFileSystemCallbacksImpl(); |
| 57 | 57 |
| 58 virtual void didSucceed(); | 58 virtual void didSucceed(); |
| 59 virtual void didReadMetadata(const WebFileInfo&); | 59 virtual void didReadMetadata(const WebFileInfo&); |
| 60 virtual void didCreateSnapshotFile(const WebFileInfo&); | 60 virtual void didCreateSnapshotFile(const WebFileInfo&); |
| 61 virtual void didReadDirectory(const WebVector<WebFileSystemEntry>& entries,
bool hasMore); | 61 virtual void didReadDirectory(const WebVector<WebFileSystemEntry>& entries,
bool hasMore); |
| 62 virtual void didOpenFileSystem(const WebString& name, const WebURL& rootURL)
; | 62 virtual void didOpenFileSystem(const WebString& name, const WebURL& rootURL)
; |
| 63 virtual void didResolveURL(const WebString& name, const WebURL& rootURL, con
st WebString& filePath, bool isDirectory); |
| 63 virtual void didCreateFileWriter(WebFileWriter*, long long length); | 64 virtual void didCreateFileWriter(WebFileWriter*, long long length); |
| 64 virtual void didFail(WebFileError error); | 65 virtual void didFail(WebFileError error); |
| 65 virtual bool shouldBlockUntilCompletion() const; | 66 virtual bool shouldBlockUntilCompletion() const; |
| 66 | 67 |
| 67 // This internal overload is used by WorkerFileSystemCallbacksBridge to deli
ver a blob data handle | 68 // This internal overload is used by WorkerFileSystemCallbacksBridge to deli
ver a blob data handle |
| 68 // created on the main thread to an AsyncFileSystemCallback on a background
worker thread. The other | 69 // created on the main thread to an AsyncFileSystemCallback on a background
worker thread. The other |
| 69 // virtual method is invoked by the embedder. | 70 // virtual method is invoked by the embedder. |
| 70 void didCreateSnapshotFile(const WebFileInfo&, PassRefPtr<WebCore::BlobDataH
andle> snapshot); | 71 void didCreateSnapshotFile(const WebFileInfo&, PassRefPtr<WebCore::BlobDataH
andle> snapshot); |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 OwnPtr<WebCore::AsyncFileSystemCallbacks> m_callbacks; | 74 OwnPtr<WebCore::AsyncFileSystemCallbacks> m_callbacks; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace WebKit | 77 } // namespace WebKit |
| 77 | 78 |
| 78 #endif // WebFileSystemCallbacksImpl_h | 79 #endif // WebFileSystemCallbacksImpl_h |
| OLD | NEW |