xref: /aosp_15_r20/external/cronet/net/url_request/view_cache_helper.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2012 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef NET_URL_REQUEST_VIEW_CACHE_HELPER_H_
6 #define NET_URL_REQUEST_VIEW_CACHE_HELPER_H_
7 
8 #include <stddef.h>
9 
10 #include <string>
11 
12 #include "net/base/net_export.h"
13 
14 namespace net {
15 
16 class NET_EXPORT ViewCacheHelper {
17  public:
18   // Lower-level helper to produce a textual representation of binary data.
19   // The results are appended to |result| and can be used in HTML pages
20   // provided the dump is contained within <pre></pre> tags.
21   static void HexDump(const char *buf, size_t buf_len, std::string* result);
22 };
23 
24 }  // namespace net.
25 
26 #endif  // NET_URL_REQUEST_VIEW_CACHE_HELPER_H_
27