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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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
« no previous file with comments | « net/base/crypto_module.h ('k') | net/base/data_url_unittest.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"
13 #include "base/strings/string_split.h" 12 #include "base/strings/string_split.h"
14 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
15 #include "net/base/escape.h" 14 #include "net/base/escape.h"
16 #include "net/base/mime_util.h" 15 #include "net/base/mime_util.h"
17 #include "net/http/http_util.h" 16 #include "net/http/http_util.h"
18 #include "url/gurl.h" 17 #include "url/gurl.h"
19 18
20 namespace net { 19 namespace net {
21 20
22 // static 21 // static
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 temp_data.resize(length + padding_needed, '='); 128 temp_data.resize(length + padding_needed, '=');
130 } 129 }
131 return base::Base64Decode(temp_data, data); 130 return base::Base64Decode(temp_data, data);
132 } 131 }
133 132
134 temp_data.swap(*data); 133 temp_data.swap(*data);
135 return true; 134 return true;
136 } 135 }
137 136
138 } // namespace net 137 } // namespace net
OLDNEW
« no previous file with comments | « net/base/crypto_module.h ('k') | net/base/data_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698