Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(894)

Side by Side Diff: chrome/browser/safe_browsing/download_protection_service.cc

Issue 2869383002: Unify safe_browsing* components [1]: move safe_browsing_prefs* (Closed)
Patch Set: fix win bots Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "chrome/common/pref_names.h" 47 #include "chrome/common/pref_names.h"
48 #include "chrome/common/safe_browsing/binary_feature_extractor.h" 48 #include "chrome/common/safe_browsing/binary_feature_extractor.h"
49 #include "chrome/common/safe_browsing/download_protection_util.h" 49 #include "chrome/common/safe_browsing/download_protection_util.h"
50 #include "chrome/common/safe_browsing/file_type_policies.h" 50 #include "chrome/common/safe_browsing/file_type_policies.h"
51 #include "chrome/common/safe_browsing/zip_analyzer_results.h" 51 #include "chrome/common/safe_browsing/zip_analyzer_results.h"
52 #include "chrome/common/url_constants.h" 52 #include "chrome/common/url_constants.h"
53 #include "components/data_use_measurement/core/data_use_user_data.h" 53 #include "components/data_use_measurement/core/data_use_user_data.h"
54 #include "components/google/core/browser/google_util.h" 54 #include "components/google/core/browser/google_util.h"
55 #include "components/history/core/browser/history_service.h" 55 #include "components/history/core/browser/history_service.h"
56 #include "components/prefs/pref_service.h" 56 #include "components/prefs/pref_service.h"
57 #include "components/safe_browsing/common/safe_browsing_prefs.h"
57 #include "components/safe_browsing/common/safebrowsing_switches.h" 58 #include "components/safe_browsing/common/safebrowsing_switches.h"
58 #include "components/safe_browsing/csd.pb.h" 59 #include "components/safe_browsing/csd.pb.h"
59 #include "components/safe_browsing_db/safe_browsing_prefs.h"
60 #include "content/public/browser/browser_thread.h" 60 #include "content/public/browser/browser_thread.h"
61 #include "content/public/browser/download_item.h" 61 #include "content/public/browser/download_item.h"
62 #include "content/public/browser/page_navigator.h" 62 #include "content/public/browser/page_navigator.h"
63 #include "crypto/sha2.h" 63 #include "crypto/sha2.h"
64 #include "google_apis/google_api_keys.h" 64 #include "google_apis/google_api_keys.h"
65 #include "net/base/escape.h" 65 #include "net/base/escape.h"
66 #include "net/base/load_flags.h" 66 #include "net/base/load_flags.h"
67 #include "net/base/url_util.h" 67 #include "net/base/url_util.h"
68 #include "net/cert/x509_cert_types.h" 68 #include "net/cert/x509_cert_types.h"
69 #include "net/cert/x509_certificate.h" 69 #include "net/cert/x509_certificate.h"
(...skipping 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 out_request->mutable_referrer_chain()); 1996 out_request->mutable_referrer_chain());
1997 UMA_HISTOGRAM_COUNTS_100( 1997 UMA_HISTOGRAM_COUNTS_100(
1998 "SafeBrowsing.ReferrerURLChainSize.PPAPIDownloadAttribution", 1998 "SafeBrowsing.ReferrerURLChainSize.PPAPIDownloadAttribution",
1999 out_request->referrer_chain_size()); 1999 out_request->referrer_chain_size());
2000 UMA_HISTOGRAM_ENUMERATION( 2000 UMA_HISTOGRAM_ENUMERATION(
2001 "SafeBrowsing.ReferrerAttributionResult.PPAPIDownloadAttribution", result, 2001 "SafeBrowsing.ReferrerAttributionResult.PPAPIDownloadAttribution", result,
2002 SafeBrowsingNavigationObserverManager::ATTRIBUTION_FAILURE_TYPE_MAX); 2002 SafeBrowsingNavigationObserverManager::ATTRIBUTION_FAILURE_TYPE_MAX);
2003 } 2003 }
2004 2004
2005 } // namespace safe_browsing 2005 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698