Index: chrome/browser/ui/webui/predictors/predictors_handler.h |
diff --git a/chrome/browser/ui/webui/predictors/predictors_handler.h b/chrome/browser/ui/webui/predictors/predictors_handler.h |
index 1c2c4229c5031c96405c0706f87640a8c465e5b1..f3355e41a67b36de21102eaaefdb96927fbda54a 100644 |
--- a/chrome/browser/ui/webui/predictors/predictors_handler.h |
+++ b/chrome/browser/ui/webui/predictors/predictors_handler.h |
@@ -6,6 +6,7 @@ |
#define CHROME_BROWSER_UI_WEBUI_PREDICTORS_PREDICTORS_HANDLER_H_ |
#include "base/compiler_specific.h" |
+#include "chrome/browser/predictors/resource_prefetch_predictor.h" |
#include "content/public/browser/web_ui_message_handler.h" |
namespace base { |
@@ -14,6 +15,7 @@ class ListValue; |
namespace predictors { |
class AutocompleteActionPredictor; |
+class ResourcePrefetchPredictor; |
} |
class Profile; |
@@ -32,7 +34,17 @@ class PredictorsHandler : public content::WebUIMessageHandler { |
// calls into JS with the resulting DictionaryValue. |
void RequestAutocompleteActionPredictorDb(const base::ListValue* args); |
+ // Fetches stats for the ResourcePrefetchPredictor and returns it as a |
+ // DictionaryValue to the JS. |
+ void RequestResourcePrefetchPredictorDb(const base::ListValue* args); |
+ |
+ // Helper for RequestResourcePrefetchPredictorDb. |
+ void AddPrefetchDataMapToListValue( |
+ const predictors::ResourcePrefetchPredictor::PrefetchDataMap& data_map, |
+ base::ListValue* db) const; |
+ |
predictors::AutocompleteActionPredictor* autocomplete_action_predictor_; |
+ predictors::ResourcePrefetchPredictor* resource_prefetch_predictor_; |
DISALLOW_COPY_AND_ASSIGN(PredictorsHandler); |
}; |