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

Unified Diff: content/child/multipart_response_delegate.cc

Issue 1662013002: Remove some dead NPAPI code after r363119. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused functions Created 4 years, 11 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/child/multipart_response_delegate.h ('k') | content/child/multipart_response_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/multipart_response_delegate.cc
diff --git a/content/child/multipart_response_delegate.cc b/content/child/multipart_response_delegate.cc
index ca01f80a1231832296383a8f41122af601973e53..4e1841e00b6cc43319331c4f53c20edb70ae9e74 100644
--- a/content/child/multipart_response_delegate.cc
+++ b/content/child/multipart_response_delegate.cc
@@ -286,34 +286,6 @@ size_t MultipartResponseDelegate::FindBoundary() {
return boundary_pos;
}
-bool MultipartResponseDelegate::ReadMultipartBoundary(
- const WebURLResponse& response,
- std::string* multipart_boundary) {
- std::string content_type =
- response.httpHeaderField(WebString::fromUTF8("Content-Type")).utf8();
-
- size_t boundary_start_offset = content_type.find("boundary=");
- if (boundary_start_offset == std::string::npos)
- return false;
-
- boundary_start_offset += strlen("boundary=");
-
- size_t boundary_end_offset = content_type.find(';', boundary_start_offset);
-
- if (boundary_end_offset == std::string::npos)
- boundary_end_offset = content_type.length();
-
- size_t boundary_length = boundary_end_offset - boundary_start_offset;
-
- *multipart_boundary =
- content_type.substr(boundary_start_offset, boundary_length);
- // The byte range response can have quoted boundary strings. This is legal
- // as per MIME specifications. Individual data fragements however don't
- // contain quoted boundary strings.
- base::TrimString(*multipart_boundary, "\"", multipart_boundary);
- return true;
-}
-
bool MultipartResponseDelegate::ReadContentRanges(
const WebURLResponse& response,
int64_t* content_range_lower_bound,
« no previous file with comments | « content/child/multipart_response_delegate.h ('k') | content/child/multipart_response_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698