Speculative crash fix; check for a null focused view before derefing.
[chromium-blink-merge.git] / ios / net / nsurlrequest_util.h
blobbdd2c424f53fc75eb14f00db3a39e51aad33863d
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.
5 #ifndef IOS_NET_NSURLREQUEST_UTIL_H_
6 #define IOS_NET_NSURLREQUEST_UTIL_H_
8 #include <Foundation/Foundation.h>
9 #include <string>
11 namespace net {
13 // Takes an |NSURLRequest| and returns a string in the form:
14 // request:<url> request.mainDocURL:<mainDocumentURL>.
15 std::string FormatUrlRequestForLogging(NSURLRequest* request);
17 } // namespace net
19 #endif // IOS_NET_NSURLREQUEST_UTIL_H_