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

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

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again Created 3 years, 9 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 27 matching lines...) Expand all
38 #include "chrome/browser/profiles/profile.h" 38 #include "chrome/browser/profiles/profile.h"
39 #include "chrome/browser/profiles/profile_manager.h" 39 #include "chrome/browser/profiles/profile_manager.h"
40 #include "chrome/browser/safe_browsing/download_feedback_service.h" 40 #include "chrome/browser/safe_browsing/download_feedback_service.h"
41 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 41 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
42 #include "chrome/browser/safe_browsing/sandboxed_zip_analyzer.h" 42 #include "chrome/browser/safe_browsing/sandboxed_zip_analyzer.h"
43 #include "chrome/browser/sessions/session_tab_helper.h" 43 #include "chrome/browser/sessions/session_tab_helper.h"
44 #include "chrome/browser/ui/browser.h" 44 #include "chrome/browser/ui/browser.h"
45 #include "chrome/browser/ui/browser_list.h" 45 #include "chrome/browser/ui/browser_list.h"
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/csd.pb.h"
49 #include "chrome/common/safe_browsing/download_protection_util.h" 48 #include "chrome/common/safe_browsing/download_protection_util.h"
50 #include "chrome/common/safe_browsing/file_type_policies.h" 49 #include "chrome/common/safe_browsing/file_type_policies.h"
51 #include "chrome/common/safe_browsing/zip_analyzer_results.h" 50 #include "chrome/common/safe_browsing/zip_analyzer_results.h"
52 #include "chrome/common/url_constants.h" 51 #include "chrome/common/url_constants.h"
53 #include "components/data_use_measurement/core/data_use_user_data.h" 52 #include "components/data_use_measurement/core/data_use_user_data.h"
54 #include "components/google/core/browser/google_util.h" 53 #include "components/google/core/browser/google_util.h"
55 #include "components/history/core/browser/history_service.h" 54 #include "components/history/core/browser/history_service.h"
56 #include "components/prefs/pref_service.h" 55 #include "components/prefs/pref_service.h"
57 #include "components/safe_browsing/common/safebrowsing_switches.h" 56 #include "components/safe_browsing/common/safebrowsing_switches.h"
57 #include "components/safe_browsing/csd.pb.h"
58 #include "components/safe_browsing_db/safe_browsing_prefs.h" 58 #include "components/safe_browsing_db/safe_browsing_prefs.h"
59 #include "content/public/browser/browser_thread.h" 59 #include "content/public/browser/browser_thread.h"
60 #include "content/public/browser/download_item.h" 60 #include "content/public/browser/download_item.h"
61 #include "content/public/browser/page_navigator.h" 61 #include "content/public/browser/page_navigator.h"
62 #include "crypto/sha2.h" 62 #include "crypto/sha2.h"
63 #include "google_apis/google_api_keys.h" 63 #include "google_apis/google_api_keys.h"
64 #include "net/base/escape.h" 64 #include "net/base/escape.h"
65 #include "net/base/load_flags.h" 65 #include "net/base/load_flags.h"
66 #include "net/base/url_util.h" 66 #include "net/base/url_util.h"
67 #include "net/cert/x509_cert_types.h" 67 #include "net/cert/x509_cert_types.h"
(...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 UMA_HISTOGRAM_COUNTS_100( 1930 UMA_HISTOGRAM_COUNTS_100(
1931 "SafeBrowsing.ReferrerURLChainSize.PPAPIDownloadAttribution", 1931 "SafeBrowsing.ReferrerURLChainSize.PPAPIDownloadAttribution",
1932 out_request->referrer_chain_size()); 1932 out_request->referrer_chain_size());
1933 UMA_HISTOGRAM_ENUMERATION( 1933 UMA_HISTOGRAM_ENUMERATION(
1934 "SafeBrowsing.ReferrerAttributionResult.PPAPIDownloadAttribution", result, 1934 "SafeBrowsing.ReferrerAttributionResult.PPAPIDownloadAttribution", result,
1935 SafeBrowsingNavigationObserverManager::ATTRIBUTION_FAILURE_TYPE_MAX); 1935 SafeBrowsingNavigationObserverManager::ATTRIBUTION_FAILURE_TYPE_MAX);
1936 out_request->set_download_attribution_finch_enabled(true); 1936 out_request->set_download_attribution_finch_enabled(true);
1937 } 1937 }
1938 1938
1939 } // namespace safe_browsing 1939 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698