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

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

Issue 8603015: Get rid of a bunch of view_messages.h includes from chrome by making the TabContentsObserver inte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux and try to fix mac again Created 9 years, 1 month 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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager.h ('k') | chrome/browser/content_settings/tab_specific_content_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698