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

Side by Side Diff: public/platform/WebFileSystemCallbacks.h

Issue 23537011: FileAPI: Add WebFileSystem::resolveURL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Callback for WebFileSystem::readDirectory. Called with a vector of 59 // Callback for WebFileSystem::readDirectory. Called with a vector of
60 // file entries in the requested directory. This callback might be called 60 // file entries in the requested directory. This callback might be called
61 // multiple times if the directory has many entries. |hasMore| must be 61 // multiple times if the directory has many entries. |hasMore| must be
62 // true when there are more entries. 62 // true when there are more entries.
63 virtual void didReadDirectory(const WebVector<WebFileSystemEntry>&, bool has More) = 0; 63 virtual void didReadDirectory(const WebVector<WebFileSystemEntry>&, bool has More) = 0;
64 64
65 // Callback for WebFileSystem::openFileSystem. Called with a name and 65 // Callback for WebFileSystem::openFileSystem. Called with a name and
66 // root URL for the FileSystem when the request is accepted. 66 // root URL for the FileSystem when the request is accepted.
67 virtual void didOpenFileSystem(const WebString& name, const WebURL& rootURL) = 0; 67 virtual void didOpenFileSystem(const WebString& name, const WebURL& rootURL) = 0;
68 68
69 // Callback for WebFileSystem::resolveURL. Called with a name, root URL and
70 // file path for the FileSystem when the request is accepted. |isDirectory|
71 // must be true when an entry to be resolved is a directory.
72 virtual void didResolveURL(const WebString& name, const WebURL& rootURL, con st WebString& filePath, bool isDirectory) = 0;
73
69 // Callback for WebFileSystem::createFileWriter. Called with an instance 74 // Callback for WebFileSystem::createFileWriter. Called with an instance
70 // of WebFileWriter and the target file length. The writer's ownership 75 // of WebFileWriter and the target file length. The writer's ownership
71 // is transferred to the callback. 76 // is transferred to the callback.
72 virtual void didCreateFileWriter(WebFileWriter* writer, long long length) { WEBKIT_ASSERT_NOT_REACHED(); } 77 virtual void didCreateFileWriter(WebFileWriter* writer, long long length) { WEBKIT_ASSERT_NOT_REACHED(); }
73 78
74 // Called with an error code when a requested operation hasn't been 79 // Called with an error code when a requested operation hasn't been
75 // completed. 80 // completed.
76 virtual void didFail(WebFileError) = 0; 81 virtual void didFail(WebFileError) = 0;
77 82
78 // Returns true if the caller expects to be blocked until the request 83 // Returns true if the caller expects to be blocked until the request
79 // is fullfilled. 84 // is fullfilled.
80 virtual bool shouldBlockUntilCompletion() const = 0; 85 virtual bool shouldBlockUntilCompletion() const = 0;
81 86
82 protected: 87 protected:
83 virtual ~WebFileSystemCallbacks() { } 88 virtual ~WebFileSystemCallbacks() { }
84 }; 89 };
85 90
86 } // namespace WebKit 91 } // namespace WebKit
87 92
88 #endif 93 #endif
OLDNEW
« Source/core/inspector/InspectorFileSystemAgent.cpp ('K') | « public/platform/WebFileSystem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698