Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: Platform/chromium/public/WebFileSystem.h

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Platform/chromium/public/WebBlobRegistry.h ('k') | Platform/chromium/public/WebHTTPBody.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Reads directory entries of a given directory at |path|. 114 // Reads directory entries of a given directory at |path|.
115 // WebFileSystemCallbacks::didReadDirectory() must be called when the operat ion is completed successfully. 115 // WebFileSystemCallbacks::didReadDirectory() must be called when the operat ion is completed successfully.
116 // WebFileSystemCallbacks::didFail() must be called otherwise. 116 // WebFileSystemCallbacks::didFail() must be called otherwise.
117 virtual void readDirectory(const WebURL& path, WebFileSystemCallbacks*) { WE BKIT_ASSERT_NOT_REACHED(); } 117 virtual void readDirectory(const WebURL& path, WebFileSystemCallbacks*) { WE BKIT_ASSERT_NOT_REACHED(); }
118 118
119 // Creates a WebFileWriter that can be used to write to the given file. 119 // Creates a WebFileWriter that can be used to write to the given file.
120 // This is a fast, synchronous call, and should not stat the filesystem. 120 // This is a fast, synchronous call, and should not stat the filesystem.
121 virtual WebFileWriter* createFileWriter(const WebURL& path, WebFileWriterCli ent*) { WEBKIT_ASSERT_NOT_REACHED(); return 0; } 121 virtual WebFileWriter* createFileWriter(const WebURL& path, WebFileWriterCli ent*) { WEBKIT_ASSERT_NOT_REACHED(); return 0; }
122 122
123 // Creates a snapshot file for a given file specified by |path| and register s the file with the |blobURL|. It returns the metadata of the created snapshot f ile. 123 // Creates a snapshot file for a given file specified by |path|. It returns the metadata of the created snapshot file.
124 // The returned metadata should include a local platform path to the snapsho t image. 124 // The returned metadata should include a local platform path to the snapsho t image.
125 // In local filesystem cases the backend may simply return the metadata of t he file itself (as well as readMetadata does), while in remote filesystem case t he backend may download the file into a temporary snapshot file and return the m etadata of the temporary file. 125 // In local filesystem cases the backend may simply return the metadata of t he file itself (as well as readMetadata does), while in remote filesystem case t he backend may download the file into a temporary snapshot file and return the m etadata of the temporary file.
126 // The returned metadata is used to create a File object for the |path|. 126 // The returned metadata is used to create a File object for the |path|.
127 // The snapshot file is supposed to be deleted when the last reference to th e |blobURL| is dropped. 127 // The snapshot file is supposed to be deleted when the last reference to a WebCore::File referring to it's path is dropped.
128 // WebFileSystemCallbacks::didReadMetadata() with the metadata of the snapsh ot file must be called when the operation is completed successfully. 128 // WebFileSystemCallbacks::didCreateSnapshotFile() with the metadata of the snapshot file must be called when the operation is completed successfully.
129 // WebFileSystemCallbacks::didFail() must be called otherwise. 129 // WebFileSystemCallbacks::didFail() must be called otherwise.
130 virtual void createSnapshotFileAndReadMetadata(const WebURL& blobURL, const WebURL& path, WebFileSystemCallbacks*) { WEBKIT_ASSERT_NOT_REACHED(); } 130 virtual void createSnapshotFileAndReadMetadata(const WebURL& path, WebFileSy stemCallbacks*) { WEBKIT_ASSERT_NOT_REACHED(); }
131 131
132 protected: 132 protected:
133 virtual ~WebFileSystem() { } 133 virtual ~WebFileSystem() { }
134 }; 134 };
135 135
136 } // namespace WebKit 136 } // namespace WebKit
137 137
138 #endif 138 #endif
OLDNEW
« no previous file with comments | « Platform/chromium/public/WebBlobRegistry.h ('k') | Platform/chromium/public/WebHTTPBody.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698