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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/nacl_http_response_headers.cc

Issue 17894007: Update includes and delete remaining strings forwarding headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « google_apis/gaia/gaia_oauth_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "native_client/src/trusted/plugin/nacl_http_response_headers.h" 5 #include "native_client/src/trusted/plugin/nacl_http_response_headers.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <sstream> 8 #include <sstream>
9 9
10 namespace { 10 namespace {
11 11
12 // TODO(jvoung) use Tokenize from base/string_util.h when this moves 12 // TODO(jvoung): Use Tokenize from base/strings/string_util.h when this moves
13 // to chromium. 13 // to Chromium.
14 void SplitString(const std::string& str, 14 void SplitString(const std::string& str,
15 char delim, 15 char delim,
16 std::vector<std::string>* elems) { 16 std::vector<std::string>* elems) {
17 std::stringstream ss(str); 17 std::stringstream ss(str);
18 std::string item; 18 std::string item;
19 while (std::getline(ss, item, delim)) { 19 while (std::getline(ss, item, delim)) {
20 elems->push_back(item); 20 elems->push_back(item);
21 } 21 }
22 } 22 }
23 23
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 std::string cc = entry.second; 98 std::string cc = entry.second;
99 std::transform(cc.begin(), cc.end(), cc.begin(), ::tolower); 99 std::transform(cc.begin(), cc.end(), cc.begin(), ::tolower);
100 if (entry.second.find("no-store") != std::string::npos) 100 if (entry.second.find("no-store") != std::string::npos)
101 return true; 101 return true;
102 } 102 }
103 } 103 }
104 return false; 104 return false;
105 } 105 }
106 106
107 } // namespace plugin 107 } // namespace plugin
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_oauth_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698