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

Side by Side Diff: content/browser/transition_request_manager.cc

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/transition_request_manager.h" 5 #include "content/browser/transition_request_manager.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "net/http/http_response_headers.h" 10 #include "net/http/http_response_headers.h"
(...skipping 21 matching lines...) Expand all
32 break; 32 break;
33 } 33 }
34 34
35 if (attributes) 35 if (attributes)
36 attributes->clear(); 36 attributes->clear();
37 37
38 net::HttpUtil::NameValuePairsIterator param_iter( 38 net::HttpUtil::NameValuePairsIterator param_iter(
39 begin + url_end + 1, header_body.end(), ';'); 39 begin + url_end + 1, header_body.end(), ';');
40 40
41 while (param_iter.GetNext()) { 41 while (param_iter.GetNext()) {
42 if (LowerCaseEqualsASCII( 42 if (base::LowerCaseEqualsASCII(
43 param_iter.name_begin(), param_iter.name_end(), "rel")) { 43 param_iter.name_begin(), param_iter.name_end(), "rel")) {
44 if (LowerCaseEqualsASCII(param_iter.value_begin(), 44 if (base::LowerCaseEqualsASCII(param_iter.value_begin(),
45 param_iter.value_end(), 45 param_iter.value_end(),
46 rel.c_str())) { 46 rel.c_str())) {
47 if (url) { 47 if (url) {
48 url->assign(begin + url_start + 1, begin + url_end); 48 url->assign(begin + url_start + 1, begin + url_end);
49 } 49 }
50 rel_matched = true; 50 rel_matched = true;
51 } else { 51 } else {
52 break; 52 break;
53 } 53 }
54 } else if (attributes) { 54 } else if (attributes) {
55 std::string attribute_name(param_iter.name_begin(), 55 std::string attribute_name(param_iter.name_begin(),
56 param_iter.name_end()); 56 param_iter.name_end());
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 TransitionRequestManager::~TransitionRequestManager() { 123 TransitionRequestManager::~TransitionRequestManager() {
124 } 124 }
125 125
126 // static 126 // static
127 TransitionRequestManager* TransitionRequestManager::GetInstance() { 127 TransitionRequestManager* TransitionRequestManager::GetInstance() {
128 return Singleton<TransitionRequestManager>::get(); 128 return Singleton<TransitionRequestManager>::get();
129 } 129 }
130 130
131 } // namespace content 131 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698