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

Side by Side Diff: chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h

Issue 10699032: autocomplete: Extract AutocompleteResult from autocomplete.*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move comments Created 8 years, 5 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_OMNIBOX_OMNIBOX_UI_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_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"
11 #include "chrome/browser/autocomplete/autocomplete.h"
12 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" 11 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h"
12 #include "chrome/browser/autocomplete/autocomplete_types.h"
13 #include "content/public/browser/web_ui_message_handler.h" 13 #include "content/public/browser/web_ui_message_handler.h"
14 14
15 namespace base {
16 class ListValue;
17 } // namespace base
18
19 class AutocompleteController; 15 class AutocompleteController;
20 class Profile; 16 class Profile;
21 17
18 namespace base {
19 class ListValue;
20 }
21
22 // UI Handler for chrome://omnibox/ 22 // UI Handler for chrome://omnibox/
23 // It listens for calls from javascript to StartOmniboxQuery() and 23 // It listens for calls from javascript to StartOmniboxQuery() and
24 // passes those calls to its private AutocompleteController. It also 24 // passes those calls to its private AutocompleteController. It also
25 // listens for updates from the AutocompleteController to OnResultChanged() 25 // listens for updates from the AutocompleteController to OnResultChanged()
26 // and passes those results on calling back into the Javascript to 26 // and passes those results on calling back into the Javascript to
27 // update the page. 27 // update the page.
28 class OmniboxUIHandler : public AutocompleteControllerDelegate, 28 class OmniboxUIHandler : public AutocompleteControllerDelegate,
29 public content::WebUIMessageHandler { 29 public content::WebUIMessageHandler {
30 public: 30 public:
31 explicit OmniboxUIHandler(Profile* profile); 31 explicit OmniboxUIHandler(Profile* profile);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Time the user's input was sent to the omnibox to start searching. 67 // Time the user's input was sent to the omnibox to start searching.
68 // Needed because we also pass timing information in the object we 68 // Needed because we also pass timing information in the object we
69 // hand back to the javascript. 69 // hand back to the javascript.
70 base::Time time_omnibox_started_; 70 base::Time time_omnibox_started_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(OmniboxUIHandler); 72 DISALLOW_COPY_AND_ASSIGN(OmniboxUIHandler);
73 }; 73 };
74 74
75 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ 75 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698