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_INSTANT_INSTANT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ |
6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
23 #include "ui/gfx/native_widget_types.h" | 23 #include "ui/gfx/native_widget_types.h" |
24 #include "ui/gfx/rect.h" | 24 #include "ui/gfx/rect.h" |
25 | 25 |
26 struct AutocompleteMatch; | 26 struct AutocompleteMatch; |
27 class InstantDelegate; | 27 class InstantDelegate; |
28 class InstantLoader; | 28 class InstantLoader; |
29 class InstantTest; | 29 class InstantTest; |
30 class PrefService; | 30 class PrefService; |
31 class Profile; | 31 class Profile; |
32 class TabContents; | |
33 class TabContentsWrapper; | 32 class TabContentsWrapper; |
34 class TemplateURL; | 33 class TemplateURL; |
35 class TemplateURLService; | 34 class TemplateURLService; |
36 | 35 |
37 // InstantController maintains a TabContents that is intended to give a preview | 36 // InstantController maintains a TabContents that is intended to give a preview |
38 // of a URL. InstantController is owned by Browser. | 37 // of a URL. InstantController is owned by Browser. |
39 // | 38 // |
40 // At any time the TabContents maintained by InstantController may be destroyed | 39 // At any time the TabContents maintained by InstantController may be destroyed |
41 // by way of |DestroyPreviewContents|, which results in |HideInstant| being | 40 // by way of |DestroyPreviewContents|, which results in |HideInstant| being |
42 // invoked on the delegate. Similarly the preview may be committed at any time | 41 // invoked on the delegate. Similarly the preview may be committed at any time |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // The URL of the most recent match passed to |Update|. | 260 // The URL of the most recent match passed to |Update|. |
262 GURL last_url_; | 261 GURL last_url_; |
263 | 262 |
264 // The most recent user_text passed to |Update|. | 263 // The most recent user_text passed to |Update|. |
265 string16 last_user_text_; | 264 string16 last_user_text_; |
266 | 265 |
267 DISALLOW_COPY_AND_ASSIGN(InstantController); | 266 DISALLOW_COPY_AND_ASSIGN(InstantController); |
268 }; | 267 }; |
269 | 268 |
270 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ | 269 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ |
OLD | NEW |