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 // This file contains the Search autocomplete provider. This provider is | 5 // This file contains the Search autocomplete provider. This provider is |
6 // responsible for all non-keyword autocomplete entries that start with | 6 // responsible for all non-keyword autocomplete entries that start with |
7 // "Search <engine> for ...", including searching for the current input string, | 7 // "Search <engine> for ...", including searching for the current input string, |
8 // search history, and search suggestions. An instance of it gets created and | 8 // search history, and search suggestions. An instance of it gets created and |
9 // managed by the autocomplete controller. | 9 // managed by the autocomplete controller. |
10 | 10 |
11 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ | 11 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ |
12 #define CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ | 12 #define CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ |
13 #pragma once | |
14 | 13 |
15 #include <map> | 14 #include <map> |
16 #include <string> | 15 #include <string> |
17 #include <vector> | 16 #include <vector> |
18 | 17 |
19 #include "base/basictypes.h" | 18 #include "base/basictypes.h" |
20 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
21 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
22 #include "base/time.h" | 21 #include "base/time.h" |
23 #include "base/timer.h" | 22 #include "base/timer.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 // Has FinalizeInstantQuery been invoked since the last |Start|? | 368 // Has FinalizeInstantQuery been invoked since the last |Start|? |
370 bool instant_finalized_; | 369 bool instant_finalized_; |
371 | 370 |
372 // The |suggest_text| parameter passed to FinalizeInstantQuery. | 371 // The |suggest_text| parameter passed to FinalizeInstantQuery. |
373 string16 default_provider_suggest_text_; | 372 string16 default_provider_suggest_text_; |
374 | 373 |
375 DISALLOW_COPY_AND_ASSIGN(SearchProvider); | 374 DISALLOW_COPY_AND_ASSIGN(SearchProvider); |
376 }; | 375 }; |
377 | 376 |
378 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ | 377 #endif // CHROME_BROWSER_AUTOCOMPLETE_SEARCH_PROVIDER_H_ |
OLD | NEW |