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

Side by Side Diff: components/safe_browsing/browser/threat_details_history.cc

Issue 2836103002: Componentize safe_browsing: move threat_details* to component. (Closed)
Patch Set: fix spelling and typos Created 3 years, 8 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
« no previous file with comments | « components/safe_browsing/browser/threat_details_history.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Implementation of the ThreatDetailsRedirectsCollector class. 5 // Implementation of the ThreatDetailsRedirectsCollector class.
6 6
7 #include "chrome/browser/safe_browsing/threat_details_history.h" 7 #include "components/safe_browsing/browser/threat_details_history.h"
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "chrome/browser/safe_browsing/threat_details.h"
14 #include "components/history/core/browser/history_service.h" 13 #include "components/history/core/browser/history_service.h"
14 #include "components/safe_browsing/browser/threat_details.h"
15 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
16 #include "content/public/browser/notification_details.h" 16 #include "content/public/browser/notification_details.h"
17 #include "content/public/browser/notification_source.h" 17 #include "content/public/browser/notification_source.h"
18 18
19 using content::BrowserThread; 19 using content::BrowserThread;
20 20
21 namespace safe_browsing { 21 namespace safe_browsing {
22 22
23 ThreatDetailsRedirectsCollector::ThreatDetailsRedirectsCollector( 23 ThreatDetailsRedirectsCollector::ThreatDetailsRedirectsCollector(
24 const base::WeakPtr<history::HistoryService>& history_service) 24 const base::WeakPtr<history::HistoryService>& history_service)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 callback_.Reset(); 114 callback_.Reset();
115 } 115 }
116 116
117 void ThreatDetailsRedirectsCollector::HistoryServiceBeingDeleted( 117 void ThreatDetailsRedirectsCollector::HistoryServiceBeingDeleted(
118 history::HistoryService* history_service) { 118 history::HistoryService* history_service) {
119 history_service_observer_.Remove(history_service); 119 history_service_observer_.Remove(history_service);
120 history_service_.reset(); 120 history_service_.reset();
121 } 121 }
122 122
123 } // namespace safe_browsing 123 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « components/safe_browsing/browser/threat_details_history.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698