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

Unified Diff: Source/core/platform/AsyncFileSystemCallbacks.h

Issue 23704004: Make WebFileSystemCallbacks not self-destruct, deprecate AsyncFileSystem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/AsyncFileSystemCallbacks.h
diff --git a/Source/core/platform/AsyncFileSystemCallbacks.h b/Source/core/platform/AsyncFileSystemCallbacks.h
index 71342974cf88efbc1486079e347781ec4b571da0..788ff1da8a64eea2abf5ca5d86684b1404040274 100644
--- a/Source/core/platform/AsyncFileSystemCallbacks.h
+++ b/Source/core/platform/AsyncFileSystemCallbacks.h
@@ -42,13 +42,13 @@ namespace WebCore {
class AsyncFileSystemCallbacks {
WTF_MAKE_NONCOPYABLE(AsyncFileSystemCallbacks);
public:
- AsyncFileSystemCallbacks() { }
+ AsyncFileSystemCallbacks() : m_blockUntilCompletion(false) { }
// Called when a requested operation is completed successfully.
virtual void didSucceed() { ASSERT_NOT_REACHED(); }
// Called when a requested file system is opened.
- virtual void didOpenFileSystem(const String& name, const KURL& rootURL, PassOwnPtr<AsyncFileSystem>) { ASSERT_NOT_REACHED(); }
+ virtual void didOpenFileSystem(const String& name, const KURL& rootURL) { ASSERT_NOT_REACHED(); }
// Called when a file metadata is read successfully.
virtual void didReadMetadata(const FileMetadata&) { ASSERT_NOT_REACHED(); }
@@ -70,9 +70,20 @@ public:
// Returns true if the caller expects that the calling thread blocks
// until completion.
- virtual bool shouldBlockUntilCompletion() const { return false; }
+ virtual bool shouldBlockUntilCompletion() const
+ {
+ return m_blockUntilCompletion;
+ }
+
+ void setShouldBlockUntilCompletion(bool flag)
+ {
+ m_blockUntilCompletion = flag;
+ }
virtual ~AsyncFileSystemCallbacks() { }
+
+private:
+ bool m_blockUntilCompletion;
};
} // namespace
« no previous file with comments | « Source/core/inspector/InspectorFrontendHost.cpp ('k') | Source/core/platform/chromium/support/WebFileSystemCallbacks.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698