Index: components/autofill/browser/autocomplete_history_manager.h |
diff --git a/components/autofill/browser/autocomplete_history_manager.h b/components/autofill/browser/autocomplete_history_manager.h |
index 9a55fa44b7dfd4cde12625f850f5c9b5f11ab38a..4ef35152db8f78c0eef9e08a247c70905f15fd8c 100644 |
--- a/components/autofill/browser/autocomplete_history_manager.h |
+++ b/components/autofill/browser/autocomplete_history_manager.h |
@@ -11,29 +11,26 @@ |
#include "base/prefs/pref_member.h" |
#include "components/autofill/browser/webdata/autofill_webdata_service.h" |
#include "components/webdata/common/web_data_service_consumer.h" |
-#include "content/public/browser/web_contents_observer.h" |
namespace content { |
class BrowserContext; |
+class WebContents; |
} |
namespace autofill { |
+class AutofillDriver; |
class AutofillExternalDelegate; |
struct FormData; |
// Per-tab Autocomplete history manager. Handles receiving form data |
// from the renderer and the storing and retrieving of form data |
// through WebDataServiceBase. |
-class AutocompleteHistoryManager : public content::WebContentsObserver, |
- public WebDataServiceConsumer { |
+class AutocompleteHistoryManager : public WebDataServiceConsumer { |
public: |
- explicit AutocompleteHistoryManager(content::WebContents* web_contents); |
+ explicit AutocompleteHistoryManager(AutofillDriver* driver); |
virtual ~AutocompleteHistoryManager(); |
- // content::WebContentsObserver implementation. |
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
- |
// WebDataServiceConsumer implementation. |
virtual void OnWebDataServiceRequestDone( |
WebDataServiceBase::Handle h, |
@@ -64,11 +61,15 @@ class AutocompleteHistoryManager : public content::WebContentsObserver, |
// Sends the given |suggestions| for display in the Autofill popup. |
void SendSuggestions(const std::vector<base::string16>* suggestions); |
+ // Used by tests to disable sending IPC. |
+ bool send_ipc_; |
Ilya Sherman
2013/06/14 02:44:37
nit: Please keep this variable private, and add a
blundell
2013/06/14 09:54:08
Done.
|
+ |
private: |
// Cancels the currently pending WebDataService query, if there is one. |
void CancelPendingQuery(); |
content::BrowserContext* browser_context_; |
+ AutofillDriver* driver_; |
Ilya Sherman
2013/06/14 02:44:37
nit: Please add documentation for this variable, e
blundell
2013/06/14 09:54:08
Done.
|
scoped_refptr<AutofillWebDataService> autofill_data_; |
BooleanPrefMember autofill_enabled_; |