| OLD | NEW |
| 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/search_engines/template_url_model.h" |
| 11 #include "chrome/browser/sessions/session_service.h" | 12 #include "chrome/browser/sessions/session_service.h" |
| 12 #include "chrome/browser/sessions/tab_restore_service.h" | 13 #include "chrome/browser/sessions/tab_restore_service.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; | 23 using base::Time; |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 if (delete_begin.is_null()) | 207 if (delete_begin.is_null()) |
| 208 cache->DoomAllEntries(); | 208 cache->DoomAllEntries(); |
| 209 else | 209 else |
| 210 cache->DoomEntriesBetween(delete_begin, delete_end); | 210 cache->DoomEntriesBetween(delete_begin, delete_end); |
| 211 } | 211 } |
| 212 | 212 |
| 213 // Notify the UI thread that we are done. | 213 // Notify the UI thread that we are done. |
| 214 ui_loop->PostTask(FROM_HERE, NewRunnableMethod( | 214 ui_loop->PostTask(FROM_HERE, NewRunnableMethod( |
| 215 this, &BrowsingDataRemover::ClearedCache)); | 215 this, &BrowsingDataRemover::ClearedCache)); |
| 216 } | 216 } |
| OLD | NEW |