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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/last_download_finder.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/incident_reporting/last_download_finder.h " 5 #include "chrome/browser/safe_browsing/incident_reporting/last_download_finder.h "
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <functional> 11 #include <functional>
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "chrome/browser/browser_process.h" 20 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/chrome_notification_types.h" 21 #include "chrome/browser/chrome_notification_types.h"
22 #include "chrome/browser/history/history_service_factory.h" 22 #include "chrome/browser/history/history_service_factory.h"
23 #include "chrome/browser/profiles/profile_manager.h" 23 #include "chrome/browser/profiles/profile_manager.h"
24 #include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_ser vice.h" 24 #include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_ser vice.h"
25 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
26 #include "chrome/common/safe_browsing/csd.pb.h"
27 #include "chrome/common/safe_browsing/download_protection_util.h" 26 #include "chrome/common/safe_browsing/download_protection_util.h"
28 #include "chrome/common/safe_browsing/file_type_policies.h" 27 #include "chrome/common/safe_browsing/file_type_policies.h"
29 #include "components/history/core/browser/download_constants.h" 28 #include "components/history/core/browser/download_constants.h"
30 #include "components/history/core/browser/history_service.h" 29 #include "components/history/core/browser/history_service.h"
31 #include "components/prefs/pref_service.h" 30 #include "components/prefs/pref_service.h"
31 #include "components/safe_browsing/csd.pb.h"
32 #include "content/public/browser/notification_details.h" 32 #include "content/public/browser/notification_details.h"
33 #include "content/public/browser/notification_service.h" 33 #include "content/public/browser/notification_service.h"
34 #include "content/public/browser/notification_source.h" 34 #include "content/public/browser/notification_source.h"
35 #include "crypto/sha2.h" 35 #include "crypto/sha2.h"
36 #include "extensions/features/features.h" 36 #include "extensions/features/features.h"
37 37
38 namespace safe_browsing { 38 namespace safe_browsing {
39 39
40 namespace { 40 namespace {
41 41
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 } 446 }
447 } 447 }
448 } 448 }
449 449
450 void LastDownloadFinder::HistoryServiceBeingDeleted( 450 void LastDownloadFinder::HistoryServiceBeingDeleted(
451 history::HistoryService* history_service) { 451 history::HistoryService* history_service) {
452 history_service_observer_.Remove(history_service); 452 history_service_observer_.Remove(history_service);
453 } 453 }
454 454
455 } // namespace safe_browsing 455 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698