| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class WebFileSystemCallbacks { | 44 class WebFileSystemCallbacks { |
| 45 public: | 45 public: |
| 46 // Callback for WebFileSystem's various operations that don't require | 46 // Callback for WebFileSystem's various operations that don't require |
| 47 // return values. | 47 // return values. |
| 48 virtual void didSucceed() = 0; | 48 virtual void didSucceed() = 0; |
| 49 | 49 |
| 50 // Callback for WebFileSystem::readMetadata. Called with the file metadata | 50 // Callback for WebFileSystem::readMetadata. Called with the file metadata |
| 51 // for the requested path. | 51 // for the requested path. |
| 52 virtual void didReadMetadata(const WebFileInfo&) = 0; | 52 virtual void didReadMetadata(const WebFileInfo&) = 0; |
| 53 | 53 |
| 54 // Callback for WebFileSystem::createSnapshot. The metadata also includes th
e |
| 55 // platform file path. |
| 56 virtual void didCreateSnapshotFile(const WebFileInfo&) = 0; |
| 57 |
| 54 // Callback for WebFileSystem::readDirectory. Called with a vector of | 58 // Callback for WebFileSystem::readDirectory. Called with a vector of |
| 55 // file entries in the requested directory. This callback might be called | 59 // file entries in the requested directory. This callback might be called |
| 56 // multiple times if the directory has many entries. |hasMore| must be | 60 // multiple times if the directory has many entries. |hasMore| must be |
| 57 // true when there are more entries. | 61 // true when there are more entries. |
| 58 virtual void didReadDirectory(const WebVector<WebFileSystemEntry>&, bool has
More) = 0; | 62 virtual void didReadDirectory(const WebVector<WebFileSystemEntry>&, bool has
More) = 0; |
| 59 | 63 |
| 60 // Callback for WebFrameClient::openFileSystem. Called with a name and | 64 // Callback for WebFrameClient::openFileSystem. Called with a name and |
| 61 // root URL for the FileSystem when the request is accepted. | 65 // root URL for the FileSystem when the request is accepted. |
| 62 virtual void didOpenFileSystem(const WebString& name, const WebURL& rootURL)
= 0; | 66 virtual void didOpenFileSystem(const WebString& name, const WebURL& rootURL)
= 0; |
| 63 | 67 |
| 64 // Called with an error code when a requested operation hasn't been | 68 // Called with an error code when a requested operation hasn't been |
| 65 // completed. | 69 // completed. |
| 66 virtual void didFail(WebFileError) = 0; | 70 virtual void didFail(WebFileError) = 0; |
| 67 | 71 |
| 68 protected: | 72 protected: |
| 69 virtual ~WebFileSystemCallbacks() {} | 73 virtual ~WebFileSystemCallbacks() {} |
| 70 }; | 74 }; |
| 71 | 75 |
| 72 } // namespace WebKit | 76 } // namespace WebKit |
| 73 | 77 |
| 74 #endif | 78 #endif |
| OLD | NEW |