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

Side by Side Diff: ios/net/http_response_headers_util.mm

Issue 1477643002: Remove the TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basepass
Patch Set: type-with-move: no-media 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 | « content/test/layouttest_support.cc ('k') | ios/web/net/cert_verifier_block_adapter.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/net/http_response_headers_util.h" 5 #include "ios/net/http_response_headers_util.h"
6 6
7 #include <Foundation/Foundation.h> 7 #include <Foundation/Foundation.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 22 matching lines...) Expand all
33 scoped_refptr<HttpResponseHeaders> http_headers( 33 scoped_refptr<HttpResponseHeaders> http_headers(
34 new HttpResponseHeaders(status_line)); 34 new HttpResponseHeaders(status_line));
35 // Iterate through |response|'s headers and add them to |http_headers|. 35 // Iterate through |response|'s headers and add them to |http_headers|.
36 [response.allHeaderFields 36 [response.allHeaderFields
37 enumerateKeysAndObjectsUsingBlock:^(NSString* header_name, 37 enumerateKeysAndObjectsUsingBlock:^(NSString* header_name,
38 NSString* value, BOOL*) { 38 NSString* value, BOOL*) {
39 NSString* header_line = 39 NSString* header_line =
40 [NSString stringWithFormat:kHeaderLineFormat, header_name, value]; 40 [NSString stringWithFormat:kHeaderLineFormat, header_name, value];
41 http_headers->AddHeader(base::SysNSStringToUTF8(header_line)); 41 http_headers->AddHeader(base::SysNSStringToUTF8(header_line));
42 }]; 42 }];
43 return http_headers.Pass(); 43 return http_headers;
44 } 44 }
45 45
46 } // namespae net 46 } // namespae net
OLDNEW
« no previous file with comments | « content/test/layouttest_support.cc ('k') | ios/web/net/cert_verifier_block_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698