OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUTOFILL_AUTOFILL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // Processes the submitted |form|, saving any new Autofill data and uploading | 128 // Processes the submitted |form|, saving any new Autofill data and uploading |
129 // the possible field types for the submitted fields to the crowdsouring | 129 // the possible field types for the submitted fields to the crowdsouring |
130 // server. Returns false if this form is not relevant for Autofill. | 130 // server. Returns false if this form is not relevant for Autofill. |
131 bool OnFormSubmitted(const webkit_glue::FormData& form, | 131 bool OnFormSubmitted(const webkit_glue::FormData& form, |
132 const base::TimeTicks& timestamp); | 132 const base::TimeTicks& timestamp); |
133 | 133 |
134 private: | 134 private: |
135 // TabContentsObserver: | 135 // TabContentsObserver: |
136 virtual void DidNavigateMainFrame( | 136 virtual void DidNavigateMainFrame( |
137 const content::LoadCommittedDetails& details, | 137 const content::LoadCommittedDetails& details, |
138 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 138 const content::FrameNavigateParams& params) OVERRIDE; |
139 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 139 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
140 | 140 |
141 // AutofillDownloadManager::Observer: | 141 // AutofillDownloadManager::Observer: |
142 virtual void OnLoadedServerPredictions( | 142 virtual void OnLoadedServerPredictions( |
143 const std::string& response_xml) OVERRIDE; | 143 const std::string& response_xml) OVERRIDE; |
144 | 144 |
145 void OnFormsSeen(const std::vector<webkit_glue::FormData>& forms, | 145 void OnFormsSeen(const std::vector<webkit_glue::FormData>& forms, |
146 const base::TimeTicks& timestamp); | 146 const base::TimeTicks& timestamp); |
147 void OnTextFieldDidChange(const webkit_glue::FormData& form, | 147 void OnTextFieldDidChange(const webkit_glue::FormData& form, |
148 const webkit_glue::FormField& field, | 148 const webkit_glue::FormField& field, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 TestTabContentsWithExternalDelegate); | 330 TestTabContentsWithExternalDelegate); |
331 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 331 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
332 UserHappinessFormLoadAndSubmission); | 332 UserHappinessFormLoadAndSubmission); |
333 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 333 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
334 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); | 334 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); |
335 | 335 |
336 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 336 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
337 }; | 337 }; |
338 | 338 |
339 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 339 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
OLD | NEW |