nsurlrequest_util.h 552 B

12345678910111213141516171819
  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
  3. // found in the LICENSE file.
  4. #ifndef IOS_NET_NSURLREQUEST_UTIL_H_
  5. #define IOS_NET_NSURLREQUEST_UTIL_H_
  6. #import <Foundation/Foundation.h>
  7. #include <string>
  8. namespace net {
  9. // Takes an |NSURLRequest| and returns a string in the form:
  10. // request:<url> request.mainDocURL:<mainDocumentURL>.
  11. std::string FormatUrlRequestForLogging(NSURLRequest* request);
  12. } // namespace net
  13. #endif // IOS_NET_NSURLREQUEST_UTIL_H_