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

Side by Side Diff: chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui_handler.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_SUGGESTIONS_INTERNALS_SUGGESTIONS_INTERNALS_UI_H ANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SUGGESTIONS_INTERNALS_SUGGESTIONS_INTERNALS_UI_H ANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SUGGESTIONS_INTERNALS_SUGGESTIONS_INTERNALS_UI_H ANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SUGGESTIONS_INTERNALS_SUGGESTIONS_INTERNALS_UI_H ANDLER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/webui/ntp/suggestions_combiner.h" 9 #include "chrome/browser/ui/webui/ntp/suggestions_combiner.h"
10 #include "content/public/browser/web_ui_message_handler.h" 10 #include "content/public/browser/web_ui_message_handler.h"
11 11
12 class Profile; 12 class Profile;
13 13
14 namespace base { 14 namespace base {
15 class ListValue; 15 class ListValue;
16 } 16 }
17 17
18 // UI Handler for chrome://suggestions-internals/ 18 // UI Handler for chrome://suggestions-internals/
19 class SuggestionsInternalsUIHandler : public content::WebUIMessageHandler, 19 class SuggestionsInternalsUIHandler : public content::WebUIMessageHandler,
20 public SuggestionsCombiner::Delegate { 20 public SuggestionsCombiner::Delegate {
21 public: 21 public:
22 explicit SuggestionsInternalsUIHandler(Profile* profile); 22 explicit SuggestionsInternalsUIHandler(Profile* profile);
23 virtual ~SuggestionsInternalsUIHandler(); 23 ~SuggestionsInternalsUIHandler() override;
24 24
25 // SuggestionsCombiner::Delegate implementation. 25 // SuggestionsCombiner::Delegate implementation.
26 virtual void OnSuggestionsReady() override; 26 void OnSuggestionsReady() override;
27 27
28 protected: 28 protected:
29 // WebUIMessageHandler implementation. 29 // WebUIMessageHandler implementation.
30 // Register our handler to get callbacks from javascript. 30 // Register our handler to get callbacks from javascript.
31 virtual void RegisterMessages() override; 31 void RegisterMessages() override;
32 32
33 void HandleGetSuggestions(const base::ListValue* one_element_input_string); 33 void HandleGetSuggestions(const base::ListValue* one_element_input_string);
34 34
35 // Used to combine suggestions from various sources. 35 // Used to combine suggestions from various sources.
36 scoped_ptr<SuggestionsCombiner> suggestions_combiner_; 36 scoped_ptr<SuggestionsCombiner> suggestions_combiner_;
37 37
38 Profile* profile_; 38 Profile* profile_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(SuggestionsInternalsUIHandler); 40 DISALLOW_COPY_AND_ASSIGN(SuggestionsInternalsUIHandler);
41 }; 41 };
42 42
43 #endif // CHROME_BROWSER_UI_WEBUI_SUGGESTIONS_INTERNALS_SUGGESTIONS_INTERNALS_U I_HANDLER_H_ 43 #endif // CHROME_BROWSER_UI_WEBUI_SUGGESTIONS_INTERNALS_SUGGESTIONS_INTERNALS_U I_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698