| 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 21 matching lines...) Expand all Loading... |
| 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/common/geoposition.h" | 37 #include "content/public/common/geoposition.h" |
| 38 #include "content/public/common/webplugininfo.h" | 38 #include "content/public/common/webplugininfo.h" |
| 39 #include "gpu/config/gpu_info.h" | 39 #include "gpu/config/gpu_info.h" |
| 40 #include "third_party/WebKit/public/platform/WebRect.h" | 40 #include "third_party/WebKit/public/platform/WebRect.h" |
| 41 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 41 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
| 42 #include "ui/gfx/rect.h" | 42 #include "ui/gfx/geometry/rect.h" |
| 43 #include "ui/gfx/screen.h" | 43 #include "ui/gfx/screen.h" |
| 44 | 44 |
| 45 using blink::WebScreenInfo; | 45 using blink::WebScreenInfo; |
| 46 | 46 |
| 47 namespace autofill { | 47 namespace autofill { |
| 48 namespace risk { | 48 namespace risk { |
| 49 | 49 |
| 50 namespace { | 50 namespace { |
| 51 | 51 |
| 52 const int32 kFingerprinterVersion = 1; | 52 const int32 kFingerprinterVersion = 1; |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 host_view->GetRenderWidgetHost()->GetWebScreenInfo(&screen_info); | 484 host_view->GetRenderWidgetHost()->GetWebScreenInfo(&screen_info); |
| 485 | 485 |
| 486 internal::GetFingerprintInternal( | 486 internal::GetFingerprintInternal( |
| 487 obfuscated_gaia_id, window_bounds, content_bounds, screen_info, version, | 487 obfuscated_gaia_id, window_bounds, content_bounds, screen_info, version, |
| 488 charset, accept_languages, install_time, app_locale, user_agent, | 488 charset, accept_languages, install_time, app_locale, user_agent, |
| 489 base::TimeDelta::FromSeconds(kTimeoutSeconds), callback); | 489 base::TimeDelta::FromSeconds(kTimeoutSeconds), callback); |
| 490 } | 490 } |
| 491 | 491 |
| 492 } // namespace risk | 492 } // namespace risk |
| 493 } // namespace autofill | 493 } // namespace autofill |
| OLD | NEW |