Changeset 141712 in webkit


Ignore:
Timestamp:
Feb 2, 2013 10:12:51 PM (11 years ago)
Author:
Michael Nordman
Message:

[chromium] FileSystem mods: Changes to snapshot file creation to reduce dependencies on blobs.
This patch just alters the WebKitAPI in advance of coding to the new API in chromium and webkit
sources, defining two new virtual methods (unimplemented and uncalled). The existing API remains
in place and in use.
https://bugs.webkit.org/show_bug.cgi?id=108736

Reviewed by Darin Fisher.

Source/Platform:

  • chromium/public/WebFileSystem.h:

(WebFileSystem):
(WebKit::WebFileSystem::createSnapshotFileAndReadMetadata):

Source/WebKit/chromium:

  • public/WebFileSystemCallbacks.h:

(WebFileSystemCallbacks):
(WebKit::WebFileSystemCallbacks::didCreateSnapshotFile):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/Platform/ChangeLog

    r141684 r141712  
     12013-02-02  Michael Nordman  <michaeln@google.com>
     2
     3        [chromium] FileSystem mods: Changes to snapshot file creation to reduce dependencies on blobs.
     4        This patch just alters the WebKitAPI in advance of coding to the new API in chromium and webkit
     5        sources, defining two new virtual methods (unimplemented and uncalled). The existing API remains
     6        in place and in use.
     7        https://bugs.webkit.org/show_bug.cgi?id=108736
     8
     9        Reviewed by Darin Fisher.
     10
     11        * chromium/public/WebFileSystem.h:
     12        (WebFileSystem):
     13        (WebKit::WebFileSystem::createSnapshotFileAndReadMetadata):
     14
    1152013-02-01  James Simonsen  <simonjam@chromium.org>
    216
  • trunk/Source/Platform/chromium/public/WebFileSystem.h

    r116336 r141712  
    121121    virtual WebFileWriter* createFileWriter(const WebURL& path, WebFileWriterClient*) { WEBKIT_ASSERT_NOT_REACHED(); return 0; }
    122122
    123     // Creates a snapshot file for a given file specified by |path| and registers the file with the |blobURL|. It returns the metadata of the created snapshot file.
     123    // Creates a snapshot file for a given file specified by |path|. It returns the metadata of the created snapshot file.
    124124    // The returned metadata should include a local platform path to the snapshot image.
    125     // In local filesystem cases the backend may simply return the metadata of the file itself (as well as readMetadata does), while in remote filesystem case the backend may download the file into a temporary snapshot file and return the metadata of the temporary file.
     125    // In local filesystem cases the backend may simply return the metadata of the file itself (as well as readMetadata does), while in
     126    // remote filesystem case the backend may download the file into a temporary snapshot file and return the metadata of the temporary file.
    126127    // 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 the |blobURL| is dropped.
    128     // WebFileSystemCallbacks::didReadMetadata() with the metadata of the snapshot file must be called when the operation is completed successfully.
     128    // The snapshot file is supposed to be deleted when the last reference to a WebCore::File referring to it's path is dropped.
     129    // WebFileSystemCallbacks::didCreateSnapshotFile() with the metadata of the snapshot file must be called when the operation is completed successfully.
    129130    // WebFileSystemCallbacks::didFail() must be called otherwise.
     131    virtual void createSnapshotFileAndReadMetadata(const WebURL& path, WebFileSystemCallbacks*) { WEBKIT_ASSERT_NOT_REACHED(); }
     132
     133    // DEPRECATED
    130134    virtual void createSnapshotFileAndReadMetadata(const WebURL& blobURL, const WebURL& path, WebFileSystemCallbacks*) { WEBKIT_ASSERT_NOT_REACHED(); }
    131135
  • trunk/Source/WebKit/chromium/ChangeLog

    r141675 r141712  
     12013-02-02  Michael Nordman  <michaeln@google.com>
     2
     3        [chromium] FileSystem mods: Changes to snapshot file creation to reduce dependencies on blobs.
     4        This patch just alters the WebKitAPI in advance of coding to the new API in chromium and webkit
     5        sources, defining two new virtual methods (unimplemented and uncalled). The existing API remains
     6        in place and in use.
     7        https://bugs.webkit.org/show_bug.cgi?id=108736
     8
     9        Reviewed by Darin Fisher.
     10
     11        * public/WebFileSystemCallbacks.h:
     12        (WebFileSystemCallbacks):
     13        (WebKit::WebFileSystemCallbacks::didCreateSnapshotFile):
     14
    1152013-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
    216
  • trunk/Source/WebKit/chromium/public/WebFileSystemCallbacks.h

    r140621 r141712  
    5252    virtual void didReadMetadata(const WebFileInfo&) = 0;
    5353
     54    // Callback for WebFileSystem::createSnapshot. The metadata also includes the
     55    // platform file path.
     56    virtual void didCreateSnapshotFile(const WebFileInfo&) { WEBKIT_ASSERT_NOT_REACHED(); }
     57
    5458    // Callback for WebFileSystem::readDirectory.  Called with a vector of
    5559    // file entries in the requested directory. This callback might be called
Note: See TracChangeset for help on using the changeset viewer.