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

Unified Diff: public/platform/WebDataConsumerHandle.h

Issue 1163653005: Remove deprecated APIs from WebDataConsumerHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@reader-interface
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/xmlhttprequest/XMLHttpRequest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebDataConsumerHandle.h
diff --git a/public/platform/WebDataConsumerHandle.h b/public/platform/WebDataConsumerHandle.h
index cba7e9746f4ebf8ed6cb0a4fd84bdc97ece00f89..ae26723f53438e2a5a0c6c6abba1fa37702e321e 100644
--- a/public/platform/WebDataConsumerHandle.h
+++ b/public/platform/WebDataConsumerHandle.h
@@ -120,39 +120,6 @@ private:
BLINK_ASSERT_NOT_REACHED();
return nullptr;
}
-
- // Below are deprecated functions that will be removed shortly. Use Reader
- // instead.
-public:
- // Note: read / beginRead / endRead / unregisterClient must not be called
- // when a client is regsitered. They must be called on the thread on which
- // registerClient is called. registerClient must not be called when a client
- // is already registered.
-
- // Reads data into |data| up to |size| bytes. The actual read size will be
- // stored in |*readSize|. This function cannot be called when a two-phase
- // read is in progress.
- // Returns Done when it reaches to the end of the data.
- virtual Result read(void* data, size_t /* size */, Flags, size_t* readSize) { return UnexpectedError; }
-
- // Begins a two-phase read. On success, the function stores a buffer that
- // contains the read data of length |*available| into |*buffer|.
- // Returns Done when it reaches to the end of the data.
- // On fail, you don't have to (and should not) call endRead, because the
- // read session implicitly ends in that case.
- virtual Result beginRead(const void** buffer, Flags, size_t* available) { return UnexpectedError; }
-
- // Ends a two-phase read.
- // |readSize| indicates the actual read size.
- virtual Result endRead(size_t readSize) { return UnexpectedError; }
-
- // Registers |client| to this handle. The client must not be null and must
- // be valid until it is unregistered (or the handle is destructed).
- // Only one registration can be made for a handle at a time.
- virtual void registerClient(Client* /* client */) { }
-
- // Unregisters |client| from this handle.
- virtual void unregisterClient() { }
};
} // namespace blink
« no previous file with comments | « Source/core/xmlhttprequest/XMLHttpRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698