• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2006-2008 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 
5 #ifndef NET_URL_REQUEST_VIEW_CACHE_HELPER_H_
6 #define NET_URL_REQUEST_VIEW_CACHE_HELPER_H_
7 
8 #include <string>
9 
10 class URLRequestContext;
11 
12 class ViewCacheHelper {
13  public:
14   // Formats the cache information for |key| as HTML.
15   static void GetEntryInfoHTML(const std::string& key,
16                                URLRequestContext* context,
17                                const std::string& url_prefix,
18                                std::string* out);
19 
20   static void GetStatisticsHTML(URLRequestContext* context,
21                                 std::string* out);
22 };
23 
24 #endif  // NET_URL_REQUEST_VIEW_CACHE_HELPER_H_
25