| 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void DeleteIndexedDBOnWebkitThread(); | 74 void DeleteIndexedDBOnWebkitThread(); |
| 75 | 75 |
| 76 // Deletes filesystem files for the extension. May only be called on the | 76 // Deletes filesystem files for the extension. May only be called on the |
| 77 // file thread. | 77 // file thread. |
| 78 void DeleteFileSystemOnFileThread(); | 78 void DeleteFileSystemOnFileThread(); |
| 79 | 79 |
| 80 // Deletes appcache files for the extension. May only be called on the IO | 80 // Deletes appcache files for the extension. May only be called on the IO |
| 81 // thread. | 81 // thread. |
| 82 void DeleteAppcachesOnIOThread(); | 82 void DeleteAppcachesOnIOThread(); |
| 83 | 83 |
| 84 // Deletes extension settings for the extension. Will be called on the FILE | |
| 85 // thread via the ExtensionSettingsFrontend. | |
| 86 void DeleteExtensionSettingsOnFileThread(ExtensionSettingsBackend* backend); | |
| 87 | |
| 88 // The ID of the extension being deleted. | 84 // The ID of the extension being deleted. |
| 89 const std::string extension_id_; | 85 const std::string extension_id_; |
| 90 | 86 |
| 91 // The database context for deleting the database. | 87 // The database context for deleting the database. |
| 92 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; | 88 scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; |
| 93 | 89 |
| 94 // Provides access to the request context. | 90 // Provides access to the request context. |
| 95 scoped_refptr<net::URLRequestContextGetter> extension_request_context_; | 91 scoped_refptr<net::URLRequestContextGetter> extension_request_context_; |
| 96 | 92 |
| 97 // The origin of the extension/app for which we're going to clear data. | 93 // The origin of the extension/app for which we're going to clear data. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 108 scoped_refptr<ChromeAppCacheService> appcache_service_; | 104 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 109 | 105 |
| 110 // If non-empty, the extension we're deleting is an isolated app, and this | 106 // If non-empty, the extension we're deleting is an isolated app, and this |
| 111 // is its directory which we should delete. | 107 // is its directory which we should delete. |
| 112 FilePath isolated_app_path_; | 108 FilePath isolated_app_path_; |
| 113 | 109 |
| 114 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); | 110 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); |
| 115 }; | 111 }; |
| 116 | 112 |
| 117 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ | 113 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ |
| OLD | NEW |