wangyix | 1f2d9429 | 2017-02-15 21:05:26 | [diff] [blame] | 1 | // 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 | |
| 10 | namespace base { |
| 11 | class Value; |
| 12 | class DictionaryValue; |
| 13 | class ListValue; |
| 14 | } |
| 15 | class Profile; |
| 16 | |
| 17 | namespace 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 |
rajendrant | 2fcf3b6 | 2018-10-24 20:08:59 | [diff] [blame] | 21 | // thread. GetSessionNetworkStats() may return null if the info does not exist; |
| 22 | // others will always return a Value (possibly empty). |
wangyix | 1f2d9429 | 2017-02-15 21:05:26 | [diff] [blame] | 23 | |
| 24 | std::unique_ptr<base::DictionaryValue> GetPrerenderInfo(Profile* profile); |
wangyix | 1f2d9429 | 2017-02-15 21:05:26 | [diff] [blame] | 25 | std::unique_ptr<base::ListValue> GetExtensionInfo(Profile* profile); |
wangyix | 1f2d9429 | 2017-02-15 21:05:26 | [diff] [blame] | 26 | #if defined(OS_WIN) |
| 27 | std::unique_ptr<base::DictionaryValue> GetWindowsServiceProviders(); |
| 28 | #endif |
| 29 | |
| 30 | } // namespace chrome_browser_net |
| 31 | |
| 32 | #endif // CHROME_BROWSER_NET_NET_EXPORT_HELPER_H_ |