blob: d406154993b4c8ce72f6c8562c006aecfaa090d4 [file] [log] [blame]
wangyix1f2d94292017-02-15 21:05:261// Copyright 2017 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 CHROME_BROWSER_NET_NET_EXPORT_HELPER_H_
6#define CHROME_BROWSER_NET_NET_EXPORT_HELPER_H_
7
8#include <memory>
9
10namespace base {
11class Value;
12class DictionaryValue;
13class ListValue;
14}
15class Profile;
16
17namespace chrome_browser_net {
18
19// Methods for getting Value summaries of net log polled data that need to be
20// retrieved on the UI thread. All functions are expected to run on the UI
rajendrant2fcf3b62018-10-24 20:08:5921// thread. GetSessionNetworkStats() may return null if the info does not exist;
22// others will always return a Value (possibly empty).
wangyix1f2d94292017-02-15 21:05:2623
24std::unique_ptr<base::DictionaryValue> GetPrerenderInfo(Profile* profile);
wangyix1f2d94292017-02-15 21:05:2625std::unique_ptr<base::ListValue> GetExtensionInfo(Profile* profile);
wangyix1f2d94292017-02-15 21:05:2626#if defined(OS_WIN)
27std::unique_ptr<base::DictionaryValue> GetWindowsServiceProviders();
28#endif
29
30} // namespace chrome_browser_net
31
32#endif // CHROME_BROWSER_NET_NET_EXPORT_HELPER_H_