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

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

Issue 10438004: Hooking the discovery API to the NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added OWNERS for experimental discovery api. Created 8 years, 6 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 15 matching lines...) Expand all
26 protected: 26 protected:
27 // WebUIMessageHandler implementation. 27 // WebUIMessageHandler implementation.
28 // Register our handler to get callbacks from javascript. 28 // Register our handler to get callbacks from javascript.
29 virtual void RegisterMessages() OVERRIDE; 29 virtual void RegisterMessages() OVERRIDE;
30 30
31 void HandleGetSuggestions(const base::ListValue* one_element_input_string); 31 void HandleGetSuggestions(const base::ListValue* one_element_input_string);
32 32
33 // Used to combine suggestions from various sources. 33 // Used to combine suggestions from various sources.
34 scoped_ptr<SuggestionsCombiner> suggestions_combiner_; 34 scoped_ptr<SuggestionsCombiner> suggestions_combiner_;
35 35
36 Profile* profile_;
37
36 DISALLOW_COPY_AND_ASSIGN(SuggestionsInternalsUIHandler); 38 DISALLOW_COPY_AND_ASSIGN(SuggestionsInternalsUIHandler);
37 }; 39 };
38 40
39 #endif // CHROME_BROWSER_UI_WEBUI_SUGGESTIONS_INTERNALS_SUGGESTIONS_INTERNALS_U I_HANDLER_H_ 41 #endif // CHROME_BROWSER_UI_WEBUI_SUGGESTIONS_INTERNALS_SUGGESTIONS_INTERNALS_U I_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698