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

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

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CORE_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_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"
11 #include "base/prefs/pref_member.h" 11 #include "base/prefs/pref_member.h"
12 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 12 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
13 #include "components/webdata/common/web_data_service_consumer.h" 13 #include "components/webdata/common/web_data_service_consumer.h"
14 14
15 namespace autofill { 15 namespace autofill {
16 16
17 class AutofillDriver; 17 class AutofillDriver;
18 class AutofillExternalDelegate; 18 class AutofillExternalDelegate;
19 class AutofillManagerDelegate; 19 class AutofillClient;
20 struct FormData; 20 struct FormData;
21 21
22 // Per-tab Autocomplete history manager. Handles receiving form data 22 // Per-tab Autocomplete history manager. Handles receiving form data
23 // from the renderer and the storing and retrieving of form data 23 // from the renderer and the storing and retrieving of form data
24 // through WebDataServiceBase. 24 // through WebDataServiceBase.
25 class AutocompleteHistoryManager : public WebDataServiceConsumer { 25 class AutocompleteHistoryManager : public WebDataServiceConsumer {
26 public: 26 public:
27 AutocompleteHistoryManager(AutofillDriver* driver, 27 AutocompleteHistoryManager(AutofillDriver* driver,
28 AutofillManagerDelegate* delegate); 28 AutofillClient* autofill_client);
29 virtual ~AutocompleteHistoryManager(); 29 virtual ~AutocompleteHistoryManager();
30 30
31 // WebDataServiceConsumer implementation. 31 // WebDataServiceConsumer implementation.
32 virtual void OnWebDataServiceRequestDone( 32 virtual void OnWebDataServiceRequestDone(
33 WebDataServiceBase::Handle h, 33 WebDataServiceBase::Handle h,
34 const WDTypedResult* result) OVERRIDE; 34 const WDTypedResult* result) OVERRIDE;
35 35
36 // Pass-through functions that are called by AutofillManager, after it has 36 // Pass-through functions that are called by AutofillManager, after it has
37 // dispatched a message. 37 // dispatched a message.
38 void OnGetAutocompleteSuggestions( 38 void OnGetAutocompleteSuggestions(
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 std::vector<base::string16> autofill_values_; 75 std::vector<base::string16> autofill_values_;
76 std::vector<base::string16> autofill_labels_; 76 std::vector<base::string16> autofill_labels_;
77 std::vector<base::string16> autofill_icons_; 77 std::vector<base::string16> autofill_icons_;
78 std::vector<int> autofill_unique_ids_; 78 std::vector<int> autofill_unique_ids_;
79 79
80 // Delegate to perform external processing (display, selection) on 80 // Delegate to perform external processing (display, selection) on
81 // our behalf. Weak. 81 // our behalf. Weak.
82 AutofillExternalDelegate* external_delegate_; 82 AutofillExternalDelegate* external_delegate_;
83 83
84 // Delegate to provide whether or not autocomplete functionality is enabled. 84 // Delegate to provide whether or not autocomplete functionality is enabled.
85 AutofillManagerDelegate* const manager_delegate_; 85 AutofillClient* const autofill_client_;
86 86
87 // Whether IPC is sent. 87 // Whether IPC is sent.
88 bool send_ipc_; 88 bool send_ipc_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(AutocompleteHistoryManager); 90 DISALLOW_COPY_AND_ASSIGN(AutocompleteHistoryManager);
91 }; 91 };
92 92
93 } // namespace autofill 93 } // namespace autofill
94 94
95 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_ 95 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698