OLD | NEW |
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 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" | 12 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" |
| 13 #include "chrome/browser/autocomplete/autocomplete_input.h" |
13 #include "chrome/browser/autocomplete/autocomplete_match.h" | 14 #include "chrome/browser/autocomplete/autocomplete_match.h" |
14 #include "content/public/browser/web_ui_message_handler.h" | 15 #include "content/public/browser/web_ui_message_handler.h" |
15 | 16 |
16 class AutocompleteController; | 17 class AutocompleteController; |
17 class Profile; | 18 class Profile; |
18 | 19 |
19 namespace base { | 20 namespace base { |
20 class ListValue; | 21 class ListValue; |
21 } | 22 } |
22 | 23 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 79 |
79 // The omnibox AutocompleteController that collects/sorts/dup- | 80 // The omnibox AutocompleteController that collects/sorts/dup- |
80 // eliminates the results as they come in. | 81 // eliminates the results as they come in. |
81 scoped_ptr<AutocompleteController> controller_; | 82 scoped_ptr<AutocompleteController> controller_; |
82 | 83 |
83 // Time the user's input was sent to the omnibox to start searching. | 84 // Time the user's input was sent to the omnibox to start searching. |
84 // Needed because we also pass timing information in the object we | 85 // Needed because we also pass timing information in the object we |
85 // hand back to the javascript. | 86 // hand back to the javascript. |
86 base::Time time_omnibox_started_; | 87 base::Time time_omnibox_started_; |
87 | 88 |
| 89 // The input used when starting the AutocompleteController. |
| 90 AutocompleteInput input_; |
| 91 |
88 // The Profile* handed to us in our constructor. | 92 // The Profile* handed to us in our constructor. |
89 Profile* profile_; | 93 Profile* profile_; |
90 | 94 |
91 DISALLOW_COPY_AND_ASSIGN(OmniboxUIHandler); | 95 DISALLOW_COPY_AND_ASSIGN(OmniboxUIHandler); |
92 }; | 96 }; |
93 | 97 |
94 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ | 98 #endif // CHROME_BROWSER_UI_WEBUI_OMNIBOX_OMNIBOX_UI_HANDLER_H_ |
OLD | NEW |