OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/autofill/autofill_dialog.h" | 13 #include "chrome/browser/autofill/autofill_dialog.h" |
14 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" | 14 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" |
15 #include "chrome/browser/autofill/form_structure.h" | 15 #include "chrome/browser/autofill/form_structure.h" |
16 #include "chrome/browser/autofill/select_control_handler.h" | 16 #include "chrome/browser/autofill/select_control_handler.h" |
17 #include "chrome/browser/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
18 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profile.h" |
19 #include "chrome/browser/renderer_host/render_view_host.h" | 19 #include "chrome/browser/renderer_host/render_view_host.h" |
20 #include "chrome/browser/tab_contents/tab_contents.h" | 20 #include "chrome/browser/tab_contents/tab_contents.h" |
21 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
23 #include "chrome/common/url_constants.h" | 23 #include "chrome/common/url_constants.h" |
24 #include "webkit/glue/form_data.h" | 24 #include "webkit/glue/form_data.h" |
25 #include "webkit/glue/form_field.h" | 25 #include "webkit/glue/form_field.h" |
26 | 26 |
27 using webkit_glue::FormData; | 27 using webkit_glue::FormData; |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 | 793 |
794 // When receiving IDs (across processes) from the renderer we unpack credit card | 794 // When receiving IDs (across processes) from the renderer we unpack credit card |
795 // and profile IDs from a single integer. Credit card IDs are stored in the | 795 // and profile IDs from a single integer. Credit card IDs are stored in the |
796 // high word and profile IDs are stored in the low word. | 796 // high word and profile IDs are stored in the low word. |
797 // static | 797 // static |
798 void AutoFillManager::UnpackIDs(int id, int* cc_id, int* profile_id) { | 798 void AutoFillManager::UnpackIDs(int id, int* cc_id, int* profile_id) { |
799 *cc_id = id >> std::numeric_limits<unsigned short>::digits & | 799 *cc_id = id >> std::numeric_limits<unsigned short>::digits & |
800 std::numeric_limits<unsigned short>::max(); | 800 std::numeric_limits<unsigned short>::max(); |
801 *profile_id = id & std::numeric_limits<unsigned short>::max(); | 801 *profile_id = id & std::numeric_limits<unsigned short>::max(); |
802 } | 802 } |
OLD | NEW |