OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // Generating a fingerprint consists of two major steps: | 5 // Generating a fingerprint consists of two major steps: |
6 // (1) Gather all the necessary data. | 6 // (1) Gather all the necessary data. |
7 // (2) Write it into a protocol buffer. | 7 // (2) Write it into a protocol buffer. |
8 // | 8 // |
9 // Step (2) is as simple as it sounds -- it's really just a matter of copying | 9 // Step (2) is as simple as it sounds -- it's really just a matter of copying |
10 // data. Step (1) requires waiting on several asynchronous callbacks, which are | 10 // data. Step (1) requires waiting on several asynchronous callbacks, which are |
11 // managed by the FingerprintDataLoader class. | 11 // managed by the FingerprintDataLoader class. |
12 | 12 |
13 #include "components/autofill/content/browser/risk/fingerprint.h" | 13 #include "components/autofill/content/browser/risk/fingerprint.h" |
14 | 14 |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/cpu.h" | 17 #include "base/cpu.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/sys_info.h" | 21 #include "base/sys_info.h" |
22 #include "base/time.h" | 22 #include "base/time/time.h" |
23 #include "base/values.h" | 23 #include "base/values.h" |
24 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" | 24 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" |
25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
26 #include "content/public/browser/font_list_async.h" | 26 #include "content/public/browser/font_list_async.h" |
27 #include "content/public/browser/geolocation_provider.h" | 27 #include "content/public/browser/geolocation_provider.h" |
28 #include "content/public/browser/gpu_data_manager.h" | 28 #include "content/public/browser/gpu_data_manager.h" |
29 #include "content/public/browser/gpu_data_manager_observer.h" | 29 #include "content/public/browser/gpu_data_manager_observer.h" |
30 #include "content/public/browser/plugin_service.h" | 30 #include "content/public/browser/plugin_service.h" |
31 #include "content/public/browser/render_widget_host.h" | 31 #include "content/public/browser/render_widget_host.h" |
32 #include "content/public/browser/render_widget_host_view.h" | 32 #include "content/public/browser/render_widget_host_view.h" |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 host_view->GetRenderWidgetHost()->GetWebScreenInfo(&screen_info); | 490 host_view->GetRenderWidgetHost()->GetWebScreenInfo(&screen_info); |
491 | 491 |
492 internal::GetFingerprintInternal( | 492 internal::GetFingerprintInternal( |
493 obfuscated_gaia_id, window_bounds, content_bounds, screen_info, version, | 493 obfuscated_gaia_id, window_bounds, content_bounds, screen_info, version, |
494 charset, accept_languages, install_time, dialog_type, app_locale, | 494 charset, accept_languages, install_time, dialog_type, app_locale, |
495 callback); | 495 callback); |
496 } | 496 } |
497 | 497 |
498 } // namespace risk | 498 } // namespace risk |
499 } // namespace autofill | 499 } // namespace autofill |
OLD | NEW |