Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: chrome/browser/ui/webui/predictors/predictors_handler.h

Issue 10416002: Seculative resource prefetching for URLs CL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 20d3314b7d362e5c046db6dbff068bc3a8572a57..06a220638b40dae741ea8dd1649654e8e6206b6a 100644
--- a/chrome/browser/ui/webui/predictors/predictors_handler.h
+++ b/chrome/browser/ui/webui/predictors/predictors_handler.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "content/public/browser/web_ui_message_handler.h"
namespace base {
@@ -15,6 +16,7 @@ class ListValue;
namespace predictors {
class AutocompleteActionPredictor;
+class ResourcePrefetchPredictor;
}
class Profile;
@@ -33,7 +35,13 @@ 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);
+
predictors::AutocompleteActionPredictor* autocomplete_action_predictor_;
+ scoped_refptr<predictors::ResourcePrefetchPredictor>
+ resource_prefetch_predictor_;
DISALLOW_COPY_AND_ASSIGN(PredictorsHandler);
};

Powered by Google App Engine
This is Rietveld 408576698