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

Side by Side Diff: components/autofill/browser/autofill_manager.cc

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling 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
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 #include "components/autofill/browser/autofill_manager.h" 5 #include "components/autofill/browser/autofill_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 AutofillManager::AutofillManager(content::WebContents* web_contents, 199 AutofillManager::AutofillManager(content::WebContents* web_contents,
200 autofill::AutofillManagerDelegate* delegate, 200 autofill::AutofillManagerDelegate* delegate,
201 const std::string& app_locale) 201 const std::string& app_locale)
202 : content::WebContentsObserver(web_contents), 202 : content::WebContentsObserver(web_contents),
203 manager_delegate_(delegate), 203 manager_delegate_(delegate),
204 app_locale_(app_locale), 204 app_locale_(app_locale),
205 personal_data_(delegate->GetPersonalDataManager()), 205 personal_data_(delegate->GetPersonalDataManager()),
206 download_manager_(web_contents->GetBrowserContext(), this), 206 download_manager_(web_contents->GetBrowserContext(), this),
207 disable_download_manager_requests_(false), 207 disable_download_manager_requests_(false),
208 autocomplete_history_manager_(web_contents), 208 autocomplete_history_manager_(web_contents,
209 delegate->GetAutofillWebDataService()),
209 autocheckout_manager_(this), 210 autocheckout_manager_(this),
210 metric_logger_(new AutofillMetrics), 211 metric_logger_(new AutofillMetrics),
211 has_logged_autofill_enabled_(false), 212 has_logged_autofill_enabled_(false),
212 has_logged_address_suggestions_count_(false), 213 has_logged_address_suggestions_count_(false),
213 did_show_suggestions_(false), 214 did_show_suggestions_(false),
214 user_did_type_(false), 215 user_did_type_(false),
215 user_did_autofill_(false), 216 user_did_autofill_(false),
216 user_did_edit_autofilled_field_(false), 217 user_did_edit_autofilled_field_(false),
217 password_generation_enabled_(false), 218 password_generation_enabled_(false),
218 external_delegate_(NULL), 219 external_delegate_(NULL),
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 1013
1013 AutofillManager::AutofillManager(content::WebContents* web_contents, 1014 AutofillManager::AutofillManager(content::WebContents* web_contents,
1014 autofill::AutofillManagerDelegate* delegate, 1015 autofill::AutofillManagerDelegate* delegate,
1015 PersonalDataManager* personal_data) 1016 PersonalDataManager* personal_data)
1016 : content::WebContentsObserver(web_contents), 1017 : content::WebContentsObserver(web_contents),
1017 manager_delegate_(delegate), 1018 manager_delegate_(delegate),
1018 app_locale_("en-US"), 1019 app_locale_("en-US"),
1019 personal_data_(personal_data), 1020 personal_data_(personal_data),
1020 download_manager_(web_contents->GetBrowserContext(), this), 1021 download_manager_(web_contents->GetBrowserContext(), this),
1021 disable_download_manager_requests_(true), 1022 disable_download_manager_requests_(true),
1022 autocomplete_history_manager_(web_contents), 1023 autocomplete_history_manager_(web_contents,
1024 delegate->GetAutofillWebDataService()),
1023 autocheckout_manager_(this), 1025 autocheckout_manager_(this),
1024 metric_logger_(new AutofillMetrics), 1026 metric_logger_(new AutofillMetrics),
1025 has_logged_autofill_enabled_(false), 1027 has_logged_autofill_enabled_(false),
1026 has_logged_address_suggestions_count_(false), 1028 has_logged_address_suggestions_count_(false),
1027 did_show_suggestions_(false), 1029 did_show_suggestions_(false),
1028 user_did_type_(false), 1030 user_did_type_(false),
1029 user_did_autofill_(false), 1031 user_did_autofill_(false),
1030 user_did_edit_autofilled_field_(false), 1032 user_did_edit_autofilled_field_(false),
1031 password_generation_enabled_(false), 1033 password_generation_enabled_(false),
1032 external_delegate_(NULL), 1034 external_delegate_(NULL),
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 1352
1351 void AutofillManager::UpdateInitialInteractionTimestamp( 1353 void AutofillManager::UpdateInitialInteractionTimestamp(
1352 const TimeTicks& interaction_timestamp) { 1354 const TimeTicks& interaction_timestamp) {
1353 if (initial_interaction_timestamp_.is_null() || 1355 if (initial_interaction_timestamp_.is_null() ||
1354 interaction_timestamp < initial_interaction_timestamp_) { 1356 interaction_timestamp < initial_interaction_timestamp_) {
1355 initial_interaction_timestamp_ = interaction_timestamp; 1357 initial_interaction_timestamp_ = interaction_timestamp;
1356 } 1358 }
1357 } 1359 }
1358 1360
1359 } // namespace autofill 1361 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698