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

Side by Side Diff: WebKit/chromium/public/WebFileSystemCallbacks.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 | « WebCore/xml/XMLHttpRequest.cpp ('k') | WebKit/chromium/public/WebFileWriter.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « WebCore/xml/XMLHttpRequest.cpp ('k') | WebKit/chromium/public/WebFileWriter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698