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

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

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 MalwareDetailsRedirectsCollector class. 5 // Implementation of the MalwareDetailsRedirectsCollector class.
6 6
7 #include "chrome/browser/safe_browsing/malware_details_history.h" 7 #include "chrome/browser/safe_browsing/malware_details_history.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/safe_browsing/malware_details.h" 12 #include "chrome/browser/safe_browsing/malware_details.h"
13 #include "chrome/common/chrome_notification_types.h" 13 #include "chrome/common/chrome_notification_types.h"
14 #include "content/browser/renderer_host/render_view_host.h" 14 #include "content/browser/renderer_host/render_view_host.h"
15 #include "content/browser/tab_contents/tab_contents.h"
16 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/notification_details.h" 16 #include "content/public/browser/notification_details.h"
18 #include "content/public/browser/notification_source.h" 17 #include "content/public/browser/notification_source.h"
18 #include "content/public/browser/web_contents.h"
19 19
20 using content::BrowserThread; 20 using content::BrowserThread;
21 21
22 MalwareDetailsRedirectsCollector::MalwareDetailsRedirectsCollector( 22 MalwareDetailsRedirectsCollector::MalwareDetailsRedirectsCollector(
23 Profile* profile) 23 Profile* profile)
24 : profile_(profile), 24 : profile_(profile),
25 has_started_(false) { 25 has_started_(false) {
26 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 26 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
27 if (profile) { 27 if (profile) {
28 registrar_.Add(this, chrome::NOTIFICATION_PROFILE_DESTROYED, 28 registrar_.Add(this, chrome::NOTIFICATION_PROFILE_DESTROYED,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 void MalwareDetailsRedirectsCollector::Observe( 127 void MalwareDetailsRedirectsCollector::Observe(
128 int type, 128 int type,
129 const content::NotificationSource& source, 129 const content::NotificationSource& source,
130 const content::NotificationDetails& details) { 130 const content::NotificationDetails& details) {
131 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 131 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
132 DCHECK_EQ(type, chrome::NOTIFICATION_PROFILE_DESTROYED); 132 DCHECK_EQ(type, chrome::NOTIFICATION_PROFILE_DESTROYED);
133 DVLOG(1) << "Profile gone."; 133 DVLOG(1) << "Profile gone.";
134 profile_ = NULL; 134 profile_ = NULL;
135 } 135 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698