OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SEARCH_INSTANT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "chrome/browser/ui/search/instant_tab.h" | 18 #include "chrome/browser/ui/search/instant_tab.h" |
19 #include "chrome/common/search/search_types.h" | 19 #include "chrome/common/search/search_types.h" |
20 | 20 |
21 class BrowserInstantController; | 21 class BrowserInstantController; |
22 class GURL; | 22 class GURL; |
23 class InstantService; | 23 class InstantService; |
24 class Profile; | |
25 | 24 |
26 namespace content { | 25 namespace content { |
27 class WebContents; | 26 class WebContents; |
28 } | 27 } |
29 | 28 |
30 // InstantController drives Chrome Instant, i.e., the browser implementation of | 29 // InstantController drives Chrome Instant, i.e., the browser implementation of |
31 // the Embedded Search API (see http://dev.chromium.org/embeddedsearch). | 30 // the Embedded Search API (see http://dev.chromium.org/embeddedsearch). |
32 // | 31 // |
33 // In extended mode, InstantController maintains and coordinates an InstantTab. | 32 // In extended mode, InstantController maintains and coordinates an InstantTab. |
34 // An InstantTab instance points to the currently active tab, if it supports the | 33 // An InstantTab instance points to the currently active tab, if it supports the |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // The search model mode for the active tab. | 115 // The search model mode for the active tab. |
117 SearchMode search_mode_; | 116 SearchMode search_mode_; |
118 | 117 |
119 // List of events and their timestamps, useful in debugging Instant behaviour. | 118 // List of events and their timestamps, useful in debugging Instant behaviour. |
120 mutable std::list<std::pair<int64_t, std::string>> debug_events_; | 119 mutable std::list<std::pair<int64_t, std::string>> debug_events_; |
121 | 120 |
122 DISALLOW_COPY_AND_ASSIGN(InstantController); | 121 DISALLOW_COPY_AND_ASSIGN(InstantController); |
123 }; | 122 }; |
124 | 123 |
125 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ | 124 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
OLD | NEW |