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

Side by Side Diff: chrome/browser/autocomplete/history_url_provider.h

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « cc/test/cc_test_suite.h ('k') | chrome/browser/chromeos/login/user_image_loader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/synchronization/cancellation_flag.h" 12 #include "base/synchronization/cancellation_flag.h"
13 #include "chrome/browser/autocomplete/autocomplete_input.h" 13 #include "chrome/browser/autocomplete/autocomplete_input.h"
14 #include "chrome/browser/autocomplete/history_provider.h" 14 #include "chrome/browser/autocomplete/history_provider.h"
15 #include "chrome/browser/autocomplete/history_provider_util.h" 15 #include "chrome/browser/autocomplete/history_provider_util.h"
16 #include "chrome/browser/autocomplete/url_prefix.h" 16 #include "chrome/browser/autocomplete/url_prefix.h"
17 #include "chrome/browser/search_engines/search_terms_data.h" 17 #include "chrome/browser/search_engines/search_terms_data.h"
18 #include "chrome/browser/search_engines/template_url.h" 18 #include "chrome/browser/search_engines/template_url.h"
19 19
20 class Profile;
21
22 namespace base {
20 class MessageLoop; 23 class MessageLoop;
21 class Profile; 24 }
22 25
23 namespace history { 26 namespace history {
24 class HistoryBackend; 27 class HistoryBackend;
25 class URLDatabase; 28 class URLDatabase;
26 } 29 }
27 30
28 // How history autocomplete works 31 // How history autocomplete works
29 // ============================== 32 // ==============================
30 // 33 //
31 // Read down this diagram for temporal ordering. 34 // Read down this diagram for temporal ordering.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Used to communicate autocomplete parameters between threads via the history 89 // Used to communicate autocomplete parameters between threads via the history
87 // service. 90 // service.
88 struct HistoryURLProviderParams { 91 struct HistoryURLProviderParams {
89 HistoryURLProviderParams(const AutocompleteInput& input, 92 HistoryURLProviderParams(const AutocompleteInput& input,
90 bool trim_http, 93 bool trim_http,
91 const std::string& languages, 94 const std::string& languages,
92 TemplateURL* default_search_provider, 95 TemplateURL* default_search_provider,
93 const SearchTermsData& search_terms_data); 96 const SearchTermsData& search_terms_data);
94 ~HistoryURLProviderParams(); 97 ~HistoryURLProviderParams();
95 98
96 MessageLoop* message_loop; 99 base::MessageLoop* message_loop;
97 100
98 // A copy of the autocomplete input. We need the copy since this object will 101 // A copy of the autocomplete input. We need the copy since this object will
99 // live beyond the original query while it runs on the history thread. 102 // live beyond the original query while it runs on the history thread.
100 AutocompleteInput input; 103 AutocompleteInput input;
101 104
102 // Should inline autocompletion be disabled? This is initalized from 105 // Should inline autocompletion be disabled? This is initalized from
103 // |input.prevent_inline_autocomplete()|, but set to false is the input 106 // |input.prevent_inline_autocomplete()|, but set to false is the input
104 // contains trailing white space. 107 // contains trailing white space.
105 bool prevent_inline_autocomplete; 108 bool prevent_inline_autocomplete;
106 109
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 // It's used to aid the transition to get all URLs from history to 333 // It's used to aid the transition to get all URLs from history to
331 // be scored in the HistoryQuick provider only. 334 // be scored in the HistoryQuick provider only.
332 bool search_url_database_; 335 bool search_url_database_;
333 336
334 // Only used by unittests; if non-empty, overrides accept-languages in the 337 // Only used by unittests; if non-empty, overrides accept-languages in the
335 // profile's pref system. 338 // profile's pref system.
336 std::string languages_; 339 std::string languages_;
337 }; 340 };
338 341
339 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ 342 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/test/cc_test_suite.h ('k') | chrome/browser/chromeos/login/user_image_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698