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

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

Powered by Google App Engine
This is Rietveld 408576698