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 |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
29 #include "content/public/browser/font_list_async.h" | 29 #include "content/public/browser/font_list_async.h" |
30 #include "content/public/browser/geolocation_provider.h" | 30 #include "content/public/browser/geolocation_provider.h" |
31 #include "content/public/browser/gpu_data_manager.h" | 31 #include "content/public/browser/gpu_data_manager.h" |
32 #include "content/public/browser/gpu_data_manager_observer.h" | 32 #include "content/public/browser/gpu_data_manager_observer.h" |
33 #include "content/public/browser/plugin_service.h" | 33 #include "content/public/browser/plugin_service.h" |
34 #include "content/public/browser/render_widget_host.h" | 34 #include "content/public/browser/render_widget_host.h" |
35 #include "content/public/browser/render_widget_host_view.h" | 35 #include "content/public/browser/render_widget_host_view.h" |
36 #include "content/public/browser/web_contents.h" | 36 #include "content/public/browser/web_contents.h" |
37 #include "content/public/browser/web_contents_view.h" | 37 #include "content/public/browser/web_contents_view.h" |
38 #include "content/public/common/content_client.h" | |
39 #include "content/public/common/geoposition.h" | 38 #include "content/public/common/geoposition.h" |
40 #include "content/public/common/webplugininfo.h" | 39 #include "content/public/common/webplugininfo.h" |
41 #include "gpu/config/gpu_info.h" | 40 #include "gpu/config/gpu_info.h" |
42 #include "third_party/WebKit/public/platform/WebRect.h" | 41 #include "third_party/WebKit/public/platform/WebRect.h" |
43 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 42 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
44 #include "ui/gfx/rect.h" | 43 #include "ui/gfx/rect.h" |
45 #include "ui/gfx/screen.h" | 44 #include "ui/gfx/screen.h" |
46 | 45 |
47 using blink::WebScreenInfo; | 46 using blink::WebScreenInfo; |
48 | 47 |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 host_view->GetRenderWidgetHost()->GetWebScreenInfo(&screen_info); | 547 host_view->GetRenderWidgetHost()->GetWebScreenInfo(&screen_info); |
549 | 548 |
550 internal::GetFingerprintInternal( | 549 internal::GetFingerprintInternal( |
551 obfuscated_gaia_id, window_bounds, content_bounds, screen_info, version, | 550 obfuscated_gaia_id, window_bounds, content_bounds, screen_info, version, |
552 charset, accept_languages, install_time, app_locale, user_agent, | 551 charset, accept_languages, install_time, app_locale, user_agent, |
553 base::TimeDelta::FromSeconds(kTimeoutSeconds), callback); | 552 base::TimeDelta::FromSeconds(kTimeoutSeconds), callback); |
554 } | 553 } |
555 | 554 |
556 } // namespace risk | 555 } // namespace risk |
557 } // namespace autofill | 556 } // namespace autofill |
OLD | NEW |