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

Side by Side Diff: chrome/browser/ui/webui/predictors/predictors_dom_handler.h

Issue 9610006: Refactoring, moving and renaming the NetworkActionPredictor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing Dominic's comments. Created 8 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_PREDICTORS_PREDICTORS_DOM_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PREDICTORS_PREDICTORS_DOM_HANDLER_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/web_ui_message_handler.h"
11
12 namespace base {
13 class ListValue;
14 }
15
16 namespace predictors {
17 class AutocompleteActionPredictor;
18 }
19
20 class Profile;
21
22 // The handler for Javascript messages for about:predictors.
23 class PredictorsDOMHandler : public content::WebUIMessageHandler {
24 public:
25 explicit PredictorsDOMHandler(Profile* profile);
26 virtual ~PredictorsDOMHandler();
27
28 // WebUIMessageHandler implementation.
29 virtual void RegisterMessages() OVERRIDE;
30
31 private:
32 // Synchronously fetches the database from AutocompleteActionPredictor and
33 // calls into JS with the resulting DictionaryValue.
34 void RequestAutocompleteActionPredictorDb(const base::ListValue* args);
35
36 predictors::AutocompleteActionPredictor* autocomplete_action_predictor_;
37
38 DISALLOW_COPY_AND_ASSIGN(PredictorsDOMHandler);
39 };
40
41 #endif // CHROME_BROWSER_UI_WEBUI_PREDICTORS_PREDICTORS_DOM_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698