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

Side by Side Diff: chrome/browser/browsing_data_remover.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/browsing_data_remover.h" 5 #include "chrome/browser/browsing_data_remover.h"
6 6
7 #include "chrome/browser/chrome_thread.h" 7 #include "chrome/browser/chrome_thread.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/download/download_manager.h" 9 #include "chrome/browser/download/download_manager.h"
10 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
11 #include "chrome/browser/session_service.h" 11 #include "chrome/browser/session_service.h"
12 #include "chrome/browser/tab_restore_service.h" 12 #include "chrome/browser/tab_restore_service.h"
13 #include "chrome/browser/template_url_model.h" 13 #include "chrome/browser/template_url_model.h"
14 #include "chrome/browser/user_metrics.h" 14 #include "chrome/browser/user_metrics.h"
15 #include "chrome/browser/webdata/web_data_service.h" 15 #include "chrome/browser/webdata/web_data_service.h"
16 #include "chrome/common/notification_service.h" 16 #include "chrome/common/notification_service.h"
17 #include "net/base/cookie_monster.h" 17 #include "net/base/cookie_monster.h"
18 #include "net/disk_cache/disk_cache.h" 18 #include "net/disk_cache/disk_cache.h"
19 #include "net/http/http_cache.h" 19 #include "net/http/http_cache.h"
20 #include "net/url_request/url_request_context.h" 20 #include "net/url_request/url_request_context.h"
21 #include "webkit/glue/password_form.h" 21 #include "webkit/glue/password_form.h"
22 22
23 using base::Time;
24
23 // Done so that we can use invokeLater on BrowsingDataRemovers and not have 25 // Done so that we can use invokeLater on BrowsingDataRemovers and not have
24 // BrowsingDataRemover implement RefCounted. 26 // BrowsingDataRemover implement RefCounted.
25 void RunnableMethodTraits<BrowsingDataRemover>::RetainCallee( 27 void RunnableMethodTraits<BrowsingDataRemover>::RetainCallee(
26 BrowsingDataRemover* remover) { 28 BrowsingDataRemover* remover) {
27 } 29 }
28 void RunnableMethodTraits<BrowsingDataRemover>::ReleaseCallee( 30 void RunnableMethodTraits<BrowsingDataRemover>::ReleaseCallee(
29 BrowsingDataRemover* remover) { 31 BrowsingDataRemover* remover) {
30 } 32 }
31 33
32 BrowsingDataRemover::BrowsingDataRemover(Profile* profile, Time delete_begin, 34 BrowsingDataRemover::BrowsingDataRemover(Profile* profile, Time delete_begin,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 if (delete_begin.is_null()) 195 if (delete_begin.is_null())
194 cache->DoomAllEntries(); 196 cache->DoomAllEntries();
195 else 197 else
196 cache->DoomEntriesBetween(delete_begin, delete_end); 198 cache->DoomEntriesBetween(delete_begin, delete_end);
197 } 199 }
198 200
199 // Notify the UI thread that we are done. 201 // Notify the UI thread that we are done.
200 ui_loop->PostTask(FROM_HERE, NewRunnableMethod( 202 ui_loop->PostTask(FROM_HERE, NewRunnableMethod(
201 this, &BrowsingDataRemover::ClearedCache)); 203 this, &BrowsingDataRemover::ClearedCache));
202 } 204 }
203
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698