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

Unified Diff: content/browser/loader/mime_sniffing_resource_handler.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 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 | « content/browser/loader/async_resource_handler.cc ('k') | content/browser/loader/navigation_url_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/mime_sniffing_resource_handler.cc
diff --git a/content/browser/loader/mime_sniffing_resource_handler.cc b/content/browser/loader/mime_sniffing_resource_handler.cc
index 1f512613ad9a4dbcc5128d223a0161069a9b553a..033185bc31131978f96c529d59dd2d3d2a6a40c3 100644
--- a/content/browser/loader/mime_sniffing_resource_handler.cc
+++ b/content/browser/loader/mime_sniffing_resource_handler.cc
@@ -53,13 +53,13 @@ const char kImageAcceptHeader[] = "image/webp,image/apng,image/*,*/*;q=0.8";
const char kDefaultAcceptHeader[] = "*/*";
// Used to write into an existing IOBuffer at a given offset.
-class DependentIOBuffer : public net::WrappedIOBuffer {
+class DependentIOBufferBar : public net::WrappedIOBuffer {
public:
- DependentIOBuffer(net::IOBuffer* buf, int offset)
+ DependentIOBufferBar(net::IOBuffer* buf, int offset)
: net::WrappedIOBuffer(buf->data() + offset), buf_(buf) {}
private:
- ~DependentIOBuffer() override {}
+ ~DependentIOBufferBar() override {}
scoped_refptr<net::IOBuffer> buf_;
};
@@ -235,7 +235,7 @@ void MimeSniffingResourceHandler::OnWillRead(
if (read_buffer_.get()) {
CHECK_LT(bytes_read_, read_buffer_size_);
- *buf = new DependentIOBuffer(read_buffer_.get(), bytes_read_);
+ *buf = new DependentIOBufferBar(read_buffer_.get(), bytes_read_);
*buf_size = read_buffer_size_ - bytes_read_;
controller->Resume();
return;
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/browser/loader/navigation_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698