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

Unified Diff: content/child/fileapi/webfilewriter_base.h

Issue 23223003: Chromium Blob hacking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: content/child/fileapi/webfilewriter_base.h
diff --git a/content/child/fileapi/webfilewriter_base.h b/content/child/fileapi/webfilewriter_base.h
index d3873dc1fb6fb2bc15de94e17c9bb3af7705d018..887b57d011323003d2c26fd295bf483c132a9f26 100644
--- a/content/child/fileapi/webfilewriter_base.h
+++ b/content/child/fileapi/webfilewriter_base.h
@@ -25,9 +25,12 @@ class CONTENT_EXPORT WebFileWriterBase
// WebFileWriter implementation
virtual void truncate(long long length);
- virtual void write(long long position, const WebKit::WebURL& blobURL);
+ virtual void write(long long position, const WebKit::WebString& id);
virtual void cancel();
+ // DEPRECATED: see crbug/174200
+ virtual void write(long long position, const WebKit::WebURL& blobURL);
+
protected:
// This calls DidSucceed() or DidFail() based on the value of |error_code|.
void DidFinish(base::PlatformFileError error_code);
@@ -40,9 +43,12 @@ class CONTENT_EXPORT WebFileWriterBase
// the requested operation, and they must call the appropiate DidSomething
// method upon completion and as progress is made in the Write case.
virtual void DoTruncate(const GURL& path, int64 offset) = 0;
- virtual void DoWrite(const GURL& path,
+ virtual void DoWriteDeprecated(const GURL& path,
const GURL& blob_url,
int64 offset) = 0;
+ virtual void DoWrite(const GURL& path,
+ const std::string& blob_id,
+ int64 offset) = 0;
virtual void DoCancel() = 0;
private:

Powered by Google App Engine
This is Rietveld 408576698