| OLD | NEW |
| 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 #include "chrome/browser/extensions/extension_data_deleter.h" | 5 #include "chrome/browser/extensions/extension_data_deleter.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/common/chrome_constants.h" | 9 #include "chrome/common/chrome_constants.h" |
| 10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
| 11 #include "chrome/common/url_constants.h" |
| 11 #include "content/browser/appcache/chrome_appcache_service.h" | 12 #include "content/browser/appcache/chrome_appcache_service.h" |
| 12 #include "content/browser/in_process_webkit/webkit_context.h" | 13 #include "content/browser/in_process_webkit/webkit_context.h" |
| 13 #include "content/common/url_constants.h" | |
| 14 #include "net/base/cookie_monster.h" | 14 #include "net/base/cookie_monster.h" |
| 15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 16 #include "net/url_request/url_request_context.h" | 16 #include "net/url_request/url_request_context.h" |
| 17 #include "net/url_request/url_request_context_getter.h" | 17 #include "net/url_request/url_request_context_getter.h" |
| 18 #include "webkit/database/database_tracker.h" | 18 #include "webkit/database/database_tracker.h" |
| 19 #include "webkit/database/database_util.h" | 19 #include "webkit/database/database_util.h" |
| 20 #include "webkit/fileapi/file_system_context.h" | 20 #include "webkit/fileapi/file_system_context.h" |
| 21 | 21 |
| 22 ExtensionDataDeleter::ExtensionDataDeleter(Profile* profile, | 22 ExtensionDataDeleter::ExtensionDataDeleter(Profile* profile, |
| 23 const std::string& extension_id, | 23 const std::string& extension_id, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // around, and holding open file handles in this directory. | 117 // around, and holding open file handles in this directory. |
| 118 // See http://crbug.com/85127 | 118 // See http://crbug.com/85127 |
| 119 if (!isolated_app_path_.empty()) | 119 if (!isolated_app_path_.empty()) |
| 120 file_util::Delete(isolated_app_path_, true); | 120 file_util::Delete(isolated_app_path_, true); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void ExtensionDataDeleter::DeleteAppcachesOnIOThread() { | 123 void ExtensionDataDeleter::DeleteAppcachesOnIOThread() { |
| 124 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 124 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 125 appcache_service_->DeleteAppCachesForOrigin(storage_origin_, NULL); | 125 appcache_service_->DeleteAppCachesForOrigin(storage_origin_, NULL); |
| 126 } | 126 } |
| OLD | NEW |