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

Side by Side Diff: components/autofill/browser/autocomplete_history_manager.h

Issue 12957002: wd4-ui for try only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wd4-ui_with_windows_fix Created 7 years, 9 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
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 COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 friend class AutofillManagerTest; 60 friend class AutofillManagerTest;
61 61
62 // Sends the given |suggestions| for display in the Autofill popup. 62 // Sends the given |suggestions| for display in the Autofill popup.
63 void SendSuggestions(const std::vector<string16>* suggestions); 63 void SendSuggestions(const std::vector<string16>* suggestions);
64 64
65 private: 65 private:
66 // Cancels the currently pending WebDataService query, if there is one. 66 // Cancels the currently pending WebDataService query, if there is one.
67 void CancelPendingQuery(); 67 void CancelPendingQuery();
68 68
69 content::BrowserContext* browser_context_; 69 content::BrowserContext* browser_context_;
70 scoped_ptr<AutofillWebDataService> autofill_data_; 70 scoped_refptr<AutofillWebDataService> autofill_data_;
71 71
72 BooleanPrefMember autofill_enabled_; 72 BooleanPrefMember autofill_enabled_;
73 73
74 // When the manager makes a request from WebDataServiceBase, the database is 74 // When the manager makes a request from WebDataServiceBase, the database is
75 // queried on another thread, we record the query handle until we get called 75 // queried on another thread, we record the query handle until we get called
76 // back. We also store the autofill results so we can send them together. 76 // back. We also store the autofill results so we can send them together.
77 WebDataServiceBase::Handle pending_query_handle_; 77 WebDataServiceBase::Handle pending_query_handle_;
78 int query_id_; 78 int query_id_;
79 std::vector<string16> autofill_values_; 79 std::vector<string16> autofill_values_;
80 std::vector<string16> autofill_labels_; 80 std::vector<string16> autofill_labels_;
81 std::vector<string16> autofill_icons_; 81 std::vector<string16> autofill_icons_;
82 std::vector<int> autofill_unique_ids_; 82 std::vector<int> autofill_unique_ids_;
83 83
84 // Delegate to perform external processing (display, selection) on 84 // Delegate to perform external processing (display, selection) on
85 // our behalf. Weak. 85 // our behalf. Weak.
86 AutofillExternalDelegate* external_delegate_; 86 AutofillExternalDelegate* external_delegate_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(AutocompleteHistoryManager); 88 DISALLOW_COPY_AND_ASSIGN(AutocompleteHistoryManager);
89 }; 89 };
90 90
91 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ 91 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
OLDNEW
« no previous file with comments | « components/autofill/browser/DEPS ('k') | components/autofill/browser/autocomplete_history_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698