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 #include "chrome/browser/autofill/autofill_manager.h" | 5 #include "chrome/browser/autofill/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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 prefs->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, | 282 prefs->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, |
283 kAutofillPositiveUploadRateDefaultValue, | 283 kAutofillPositiveUploadRateDefaultValue, |
284 PrefService::UNSYNCABLE_PREF); | 284 PrefService::UNSYNCABLE_PREF); |
285 prefs->RegisterDoublePref(prefs::kAutofillNegativeUploadRate, | 285 prefs->RegisterDoublePref(prefs::kAutofillNegativeUploadRate, |
286 kAutofillNegativeUploadRateDefaultValue, | 286 kAutofillNegativeUploadRateDefaultValue, |
287 PrefService::UNSYNCABLE_PREF); | 287 PrefService::UNSYNCABLE_PREF); |
288 } | 288 } |
289 | 289 |
290 void AutofillManager::DidNavigateMainFrame( | 290 void AutofillManager::DidNavigateMainFrame( |
291 const content::LoadCommittedDetails& details, | 291 const content::LoadCommittedDetails& details, |
292 const ViewHostMsg_FrameNavigate_Params& params) { | 292 const content::FrameNavigateParams& params) { |
293 Reset(); | 293 Reset(); |
294 } | 294 } |
295 | 295 |
296 bool AutofillManager::OnMessageReceived(const IPC::Message& message) { | 296 bool AutofillManager::OnMessageReceived(const IPC::Message& message) { |
297 bool handled = true; | 297 bool handled = true; |
298 IPC_BEGIN_MESSAGE_MAP(AutofillManager, message) | 298 IPC_BEGIN_MESSAGE_MAP(AutofillManager, message) |
299 IPC_MESSAGE_HANDLER(AutofillHostMsg_FormsSeen, OnFormsSeen) | 299 IPC_MESSAGE_HANDLER(AutofillHostMsg_FormsSeen, OnFormsSeen) |
300 IPC_MESSAGE_HANDLER(AutofillHostMsg_FormSubmitted, OnFormSubmitted) | 300 IPC_MESSAGE_HANDLER(AutofillHostMsg_FormSubmitted, OnFormSubmitted) |
301 IPC_MESSAGE_HANDLER(AutofillHostMsg_TextFieldDidChange, | 301 IPC_MESSAGE_HANDLER(AutofillHostMsg_TextFieldDidChange, |
302 OnTextFieldDidChange) | 302 OnTextFieldDidChange) |
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 *profile_guid = IDToGUID(profile_id); | 1287 *profile_guid = IDToGUID(profile_id); |
1288 } | 1288 } |
1289 | 1289 |
1290 void AutofillManager::UpdateInitialInteractionTimestamp( | 1290 void AutofillManager::UpdateInitialInteractionTimestamp( |
1291 const TimeTicks& interaction_timestamp) { | 1291 const TimeTicks& interaction_timestamp) { |
1292 if (initial_interaction_timestamp_.is_null() || | 1292 if (initial_interaction_timestamp_.is_null() || |
1293 interaction_timestamp < initial_interaction_timestamp_) { | 1293 interaction_timestamp < initial_interaction_timestamp_) { |
1294 initial_interaction_timestamp_ = interaction_timestamp; | 1294 initial_interaction_timestamp_ = interaction_timestamp; |
1295 } | 1295 } |
1296 } | 1296 } |
OLD | NEW |