| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_ |
| 7 | 7 |
| 8 class GURL; | 8 class GURL; |
| 9 | 9 |
| 10 namespace webui { | 10 namespace webui { |
| 11 | 11 |
| 12 // Name of histogram that WebUI URLs are logged to. |
| 13 extern const char kWebUICreatedForUrl[]; |
| 14 |
| 12 // Called when WebUI objects are created to get aggregate usage data (i.e. is | 15 // Called when WebUI objects are created to get aggregate usage data (i.e. is |
| 13 // chrome://history used more than chrome://help?). Only internal (e.g. | 16 // chrome://history used more than chrome://help?). Only internal (e.g. |
| 14 // chrome://) URLs are logged. Returns whether the URL was actually logged. | 17 // chrome://) URLs are logged. Returns whether the URL was actually logged. |
| 15 bool LogWebUIUrl(const GURL& web_ui_url); | 18 bool LogWebUIUrl(const GURL& web_ui_url); |
| 16 | 19 |
| 17 } // namespace webui | 20 } // namespace webui |
| 18 | 21 |
| 19 #endif // CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_ | 22 #endif // CHROME_BROWSER_UI_WEBUI_LOG_WEB_UI_URL_H_ |
| OLD | NEW |