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 27 matching lines...) Expand all Loading... |
38 #include "chrome/browser/ui/browser.h" | 38 #include "chrome/browser/ui/browser.h" |
39 #include "chrome/browser/ui/browser_list.h" | 39 #include "chrome/browser/ui/browser_list.h" |
40 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 40 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
41 #include "chrome/common/autofill_messages.h" | 41 #include "chrome/common/autofill_messages.h" |
42 #include "chrome/common/chrome_notification_types.h" | 42 #include "chrome/common/chrome_notification_types.h" |
43 #include "chrome/common/chrome_switches.h" | 43 #include "chrome/common/chrome_switches.h" |
44 #include "chrome/common/guid.h" | 44 #include "chrome/common/guid.h" |
45 #include "chrome/common/pref_names.h" | 45 #include "chrome/common/pref_names.h" |
46 #include "chrome/common/url_constants.h" | 46 #include "chrome/common/url_constants.h" |
47 #include "content/browser/renderer_host/render_view_host.h" | 47 #include "content/browser/renderer_host/render_view_host.h" |
| 48 #include "content/browser/tab_contents/tab_contents.h" |
48 #include "content/public/browser/browser_thread.h" | 49 #include "content/public/browser/browser_thread.h" |
49 #include "content/public/browser/notification_service.h" | 50 #include "content/public/browser/notification_service.h" |
50 #include "content/public/browser/notification_source.h" | 51 #include "content/public/browser/notification_source.h" |
51 #include "googleurl/src/gurl.h" | 52 #include "googleurl/src/gurl.h" |
52 #include "grit/generated_resources.h" | 53 #include "grit/generated_resources.h" |
53 #include "ipc/ipc_message_macros.h" | 54 #include "ipc/ipc_message_macros.h" |
54 #include "ui/base/l10n/l10n_util.h" | 55 #include "ui/base/l10n/l10n_util.h" |
55 #include "ui/gfx/rect.h" | 56 #include "ui/gfx/rect.h" |
56 #include "webkit/glue/form_data.h" | 57 #include "webkit/glue/form_data.h" |
57 #include "webkit/glue/form_data_predictions.h" | 58 #include "webkit/glue/form_data_predictions.h" |
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 *profile_guid = IDToGUID(profile_id); | 1300 *profile_guid = IDToGUID(profile_id); |
1300 } | 1301 } |
1301 | 1302 |
1302 void AutofillManager::UpdateInitialInteractionTimestamp( | 1303 void AutofillManager::UpdateInitialInteractionTimestamp( |
1303 const TimeTicks& interaction_timestamp) { | 1304 const TimeTicks& interaction_timestamp) { |
1304 if (initial_interaction_timestamp_.is_null() || | 1305 if (initial_interaction_timestamp_.is_null() || |
1305 interaction_timestamp < initial_interaction_timestamp_) { | 1306 interaction_timestamp < initial_interaction_timestamp_) { |
1306 initial_interaction_timestamp_ = interaction_timestamp; | 1307 initial_interaction_timestamp_ = interaction_timestamp; |
1307 } | 1308 } |
1308 } | 1309 } |
OLD | NEW |