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

Side by Side Diff: net/base/data_url.cc

Issue 12473004: src/: Update the remaining include paths of string_split.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « media/filters/source_buffer_stream_unittest.cc ('k') | net/base/hash_value.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // NOTE: based loosely on mozilla's nsDataChannel.cpp 5 // NOTE: based loosely on mozilla's nsDataChannel.cpp
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "net/base/data_url.h" 9 #include "net/base/data_url.h"
10 10
11 #include "base/base64.h" 11 #include "base/base64.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/string_split.h"
14 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/strings/string_split.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "net/base/escape.h" 16 #include "net/base/escape.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 // static 20 // static
21 bool DataURL::Parse(const GURL& url, std::string* mime_type, 21 bool DataURL::Parse(const GURL& url, std::string* mime_type,
22 std::string* charset, std::string* data) { 22 std::string* charset, std::string* data) {
23 DCHECK(mime_type->empty()); 23 DCHECK(mime_type->empty());
24 DCHECK(charset->empty()); 24 DCHECK(charset->empty());
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 temp_data.resize(length + padding_needed, '='); 114 temp_data.resize(length + padding_needed, '=');
115 } 115 }
116 return base::Base64Decode(temp_data, data); 116 return base::Base64Decode(temp_data, data);
117 } 117 }
118 118
119 temp_data.swap(*data); 119 temp_data.swap(*data);
120 return true; 120 return true;
121 } 121 }
122 122
123 } // namespace net 123 } // namespace net
OLDNEW
« no previous file with comments | « media/filters/source_buffer_stream_unittest.cc ('k') | net/base/hash_value.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698