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

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

Issue 10380041: Refactoring AutocompleteActionPredictor Database. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Syncing to HEAD 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/autocomplete_action_predictor_dom_handler.h b/chrome/browser/ui/webui/predictors/predictors_handler.h
similarity index 55%
rename from chrome/browser/ui/webui/predictors/autocomplete_action_predictor_dom_handler.h
rename to chrome/browser/ui/webui/predictors/predictors_handler.h
index f27ca9e63f4aaa7c1d2736eeb27dc0c1c292bce2..20d3314b7d362e5c046db6dbff068bc3a8572a57 100644
--- a/chrome/browser/ui/webui/predictors/autocomplete_action_predictor_dom_handler.h
+++ b/chrome/browser/ui/webui/predictors/predictors_handler.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_DOM_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_DOM_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_PREDICTORS_PREDICTORS_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_PREDICTORS_PREDICTORS_HANDLER_H_
#pragma once
#include "base/compiler_specific.h"
@@ -13,15 +13,17 @@ namespace base {
class ListValue;
}
+namespace predictors {
class AutocompleteActionPredictor;
+}
+
class Profile;
// The handler for Javascript messages for about:predictors.
-class AutocompleteActionPredictorDOMHandler
- : public content::WebUIMessageHandler {
+class PredictorsHandler : public content::WebUIMessageHandler {
public:
- explicit AutocompleteActionPredictorDOMHandler(Profile* profile);
- virtual ~AutocompleteActionPredictorDOMHandler();
+ explicit PredictorsHandler(Profile* profile);
+ virtual ~PredictorsHandler();
// WebUIMessageHandler implementation.
virtual void RegisterMessages() OVERRIDE;
@@ -31,9 +33,9 @@ class AutocompleteActionPredictorDOMHandler
// calls into JS with the resulting DictionaryValue.
void RequestAutocompleteActionPredictorDb(const base::ListValue* args);
- AutocompleteActionPredictor* autocomplete_action_predictor_;
+ predictors::AutocompleteActionPredictor* autocomplete_action_predictor_;
- DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictorDOMHandler);
+ DISALLOW_COPY_AND_ASSIGN(PredictorsHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_DOM_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_PREDICTORS_PREDICTORS_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698