| OLD | NEW |
| 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 #ifndef IOS_NET_NSURLREQUEST_UTIL_H_ | 5 #ifndef IOS_NET_NSURLREQUEST_UTIL_H_ |
| 6 #define IOS_NET_NSURLREQUEST_UTIL_H_ | 6 #define IOS_NET_NSURLREQUEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 // Takes an |NSURLRequest| and returns a string in the form: | 13 // Takes an |NSURLRequest| and returns a string in the form: |
| 14 // request:<url> request.mainDocURL:<mainDocumentURL>. | 14 // request:<url> request.mainDocURL:<mainDocumentURL>. |
| 15 std::string FormatUrlRequestForLogging(NSURLRequest* request); | 15 std::string FormatUrlRequestForLogging(NSURLRequest* request); |
| 16 | 16 |
| 17 } // namespace net | 17 } // namespace net |
| 18 | 18 |
| 19 #endif // IOS_NET_NSURLREQUEST_UTIL_H_ | 19 #endif // IOS_NET_NSURLREQUEST_UTIL_H_ |
| OLD | NEW |