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

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

Issue 10380041: Refactoring AutocompleteActionPredictor Database. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing histogram names. 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_dom_handler.h
diff --git a/chrome/browser/ui/webui/predictors/autocomplete_action_predictor_dom_handler.h b/chrome/browser/ui/webui/predictors/predictors_dom_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_dom_handler.h
index f27ca9e63f4aaa7c1d2736eeb27dc0c1c292bce2..ce6acab2148e2a25b5057a3e186e7f12bde62e50 100644
--- a/chrome/browser/ui/webui/predictors/autocomplete_action_predictor_dom_handler.h
+++ b/chrome/browser/ui/webui/predictors/predictors_dom_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_DOM_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_PREDICTORS_PREDICTORS_DOM_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 PredictorsDOMHandler : public content::WebUIMessageHandler {
Evan Stade 2012/05/09 21:34:30 nit: remove DOM from the name
Shishir 2012/05/09 21:47:22 Done.
public:
- explicit AutocompleteActionPredictorDOMHandler(Profile* profile);
- virtual ~AutocompleteActionPredictorDOMHandler();
+ explicit PredictorsDOMHandler(Profile* profile);
+ virtual ~PredictorsDOMHandler();
// 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(PredictorsDOMHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_DOM_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_PREDICTORS_PREDICTORS_DOM_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698