Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/safe_browsing/download_protection_service.h" | 5 #include "chrome/browser/safe_browsing/download_protection_service.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 #include "chrome/common/pref_names.h" | 46 #include "chrome/common/pref_names.h" |
| 47 #include "chrome/common/safe_browsing/binary_feature_extractor.h" | 47 #include "chrome/common/safe_browsing/binary_feature_extractor.h" |
| 48 #include "chrome/common/safe_browsing/download_protection_util.h" | 48 #include "chrome/common/safe_browsing/download_protection_util.h" |
| 49 #include "chrome/common/safe_browsing/file_type_policies.h" | 49 #include "chrome/common/safe_browsing/file_type_policies.h" |
| 50 #include "chrome/common/safe_browsing/zip_analyzer_results.h" | 50 #include "chrome/common/safe_browsing/zip_analyzer_results.h" |
| 51 #include "chrome/common/url_constants.h" | 51 #include "chrome/common/url_constants.h" |
| 52 #include "components/data_use_measurement/core/data_use_user_data.h" | 52 #include "components/data_use_measurement/core/data_use_user_data.h" |
| 53 #include "components/google/core/browser/google_util.h" | 53 #include "components/google/core/browser/google_util.h" |
| 54 #include "components/history/core/browser/history_service.h" | 54 #include "components/history/core/browser/history_service.h" |
| 55 #include "components/prefs/pref_service.h" | 55 #include "components/prefs/pref_service.h" |
| 56 #include "components/safe_browsing/common/csd.pb.h" | |
| 56 #include "components/safe_browsing/common/safebrowsing_switches.h" | 57 #include "components/safe_browsing/common/safebrowsing_switches.h" |
| 57 #include "components/safe_browsing/csd.pb.h" | 58 #include "components/safe_browsing/csd.pb.h" |
|
Jialiu Lin
2017/03/13 18:57:54
Remove "#include "components/safe_browsing/csd.pb.
timvolodine
2017/03/13 20:08:44
Done.
| |
| 58 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 59 #include "components/safe_browsing_db/safe_browsing_prefs.h" |
| 59 #include "content/public/browser/browser_thread.h" | 60 #include "content/public/browser/browser_thread.h" |
| 60 #include "content/public/browser/download_item.h" | 61 #include "content/public/browser/download_item.h" |
| 61 #include "content/public/browser/page_navigator.h" | 62 #include "content/public/browser/page_navigator.h" |
| 62 #include "crypto/sha2.h" | 63 #include "crypto/sha2.h" |
| 63 #include "google_apis/google_api_keys.h" | 64 #include "google_apis/google_api_keys.h" |
| 64 #include "net/base/escape.h" | 65 #include "net/base/escape.h" |
| 65 #include "net/base/load_flags.h" | 66 #include "net/base/load_flags.h" |
| 66 #include "net/base/url_util.h" | 67 #include "net/base/url_util.h" |
| 67 #include "net/cert/x509_cert_types.h" | 68 #include "net/cert/x509_cert_types.h" |
| (...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1930 UMA_HISTOGRAM_COUNTS_100( | 1931 UMA_HISTOGRAM_COUNTS_100( |
| 1931 "SafeBrowsing.ReferrerURLChainSize.PPAPIDownloadAttribution", | 1932 "SafeBrowsing.ReferrerURLChainSize.PPAPIDownloadAttribution", |
| 1932 out_request->referrer_chain_size()); | 1933 out_request->referrer_chain_size()); |
| 1933 UMA_HISTOGRAM_ENUMERATION( | 1934 UMA_HISTOGRAM_ENUMERATION( |
| 1934 "SafeBrowsing.ReferrerAttributionResult.PPAPIDownloadAttribution", result, | 1935 "SafeBrowsing.ReferrerAttributionResult.PPAPIDownloadAttribution", result, |
| 1935 SafeBrowsingNavigationObserverManager::ATTRIBUTION_FAILURE_TYPE_MAX); | 1936 SafeBrowsingNavigationObserverManager::ATTRIBUTION_FAILURE_TYPE_MAX); |
| 1936 out_request->set_download_attribution_finch_enabled(true); | 1937 out_request->set_download_attribution_finch_enabled(true); |
| 1937 } | 1938 } |
| 1938 | 1939 |
| 1939 } // namespace safe_browsing | 1940 } // namespace safe_browsing |
| OLD | NEW |