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

Unified Diff: pdf/document_loader.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
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 | « net/websockets/websocket_basic_handshake_stream.cc ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/document_loader.cc
diff --git a/pdf/document_loader.cc b/pdf/document_loader.cc
index 165fffe88682e71f22ec5575377a61d2a9802db5..8801a5a9cc575de893a8f82b14fcdbd3fe41ca3d 100644
--- a/pdf/document_loader.cc
+++ b/pdf/document_loader.cc
@@ -27,7 +27,7 @@ const uint32_t kMinFileSize = 64 * 1024;
bool GetByteRange(const std::string& headers, uint32_t* start, uint32_t* end) {
net::HttpUtil::HeadersIterator it(headers.begin(), headers.end(), "\n");
while (it.GetNext()) {
- if (LowerCaseEqualsASCII(it.name(), "content-range")) {
+ if (base::LowerCaseEqualsASCII(it.name(), "content-range")) {
std::string range = it.values().c_str();
if (StartsWithASCII(range, "bytes", false)) {
range = range.substr(strlen("bytes"));
@@ -51,7 +51,7 @@ bool GetByteRange(const std::string& headers, uint32_t* start, uint32_t* end) {
std::string GetMultiPartBoundary(const std::string& headers) {
net::HttpUtil::HeadersIterator it(headers.begin(), headers.end(), "\n");
while (it.GetNext()) {
- if (LowerCaseEqualsASCII(it.name(), "content-type")) {
+ if (base::LowerCaseEqualsASCII(it.name(), "content-type")) {
std::string type = base::StringToLowerASCII(it.values());
if (StartsWithASCII(type, "multipart/", true)) {
const char* boundary = strstr(type.c_str(), "boundary=");
@@ -127,20 +127,20 @@ bool DocumentLoader::Init(const pp::URLLoader& loader,
net::HttpUtil::HeadersIterator it(response_headers.begin(),
response_headers.end(), "\n");
while (it.GetNext()) {
- if (LowerCaseEqualsASCII(it.name(), "content-length")) {
+ if (base::LowerCaseEqualsASCII(it.name(), "content-length")) {
content_length = atoi(it.values().c_str());
- } else if (LowerCaseEqualsASCII(it.name(), "accept-ranges")) {
- accept_ranges_bytes = LowerCaseEqualsASCII(it.values(), "bytes");
- } else if (LowerCaseEqualsASCII(it.name(), "content-encoding")) {
+ } else if (base::LowerCaseEqualsASCII(it.name(), "accept-ranges")) {
+ accept_ranges_bytes = base::LowerCaseEqualsASCII(it.values(), "bytes");
+ } else if (base::LowerCaseEqualsASCII(it.name(), "content-encoding")) {
content_encoded = true;
- } else if (LowerCaseEqualsASCII(it.name(), "content-type")) {
+ } else if (base::LowerCaseEqualsASCII(it.name(), "content-type")) {
type = it.values();
size_t semi_colon_pos = type.find(';');
if (semi_colon_pos != std::string::npos) {
type = type.substr(0, semi_colon_pos);
}
TrimWhitespace(type, base::TRIM_ALL, &type);
- } else if (LowerCaseEqualsASCII(it.name(), "content-disposition")) {
+ } else if (base::LowerCaseEqualsASCII(it.name(), "content-disposition")) {
disposition = it.values();
}
}
« no previous file with comments | « net/websockets/websocket_basic_handshake_stream.cc ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698