view_cache_helper.h 756 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2012 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 NET_URL_REQUEST_VIEW_CACHE_HELPER_H_
  5. #define NET_URL_REQUEST_VIEW_CACHE_HELPER_H_
  6. #include <stddef.h>
  7. #include <string>
  8. #include "net/base/net_export.h"
  9. namespace net {
  10. class NET_EXPORT ViewCacheHelper {
  11. public:
  12. // Lower-level helper to produce a textual representation of binary data.
  13. // The results are appended to |result| and can be used in HTML pages
  14. // provided the dump is contained within <pre></pre> tags.
  15. static void HexDump(const char *buf, size_t buf_len, std::string* result);
  16. };
  17. } // namespace net.
  18. #endif // NET_URL_REQUEST_VIEW_CACHE_HELPER_H_