| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 ~ExtensionDataDeleter(); | 63 ~ExtensionDataDeleter(); |
| 64 | 64 |
| 65 // Deletes the cookies for the extension. May only be called on the io | 65 // Deletes the cookies for the extension. May only be called on the io |
| 66 // thread. | 66 // thread. |
| 67 void DeleteCookiesOnIOThread(); | 67 void DeleteCookiesOnIOThread(); |
| 68 | 68 |
| 69 // Deletes the database for the extension. May only be called on the file | 69 // Deletes the database for the extension. May only be called on the file |
| 70 // thread. | 70 // thread. |
| 71 void DeleteDatabaseOnFileThread(); | 71 void DeleteDatabaseOnFileThread(); |
| 72 | 72 |
| 73 // Deletes local storage for the extension. May only be called on the webkit | 73 // Deletes local storage for the extension. May only be called in a |
| 74 // thread. | 74 // DOMStorageContext sequenced task. |
| 75 void DeleteLocalStorageOnWebkitThread( | 75 void DeleteLocalStorageInSequencedTask( |
| 76 scoped_refptr<content::DOMStorageContext> dom_storage_context); | 76 content::DOMStorageContext* dom_storage_context); |
| 77 | 77 |
| 78 // Deletes indexed db files for the extension. May only be called on the | 78 // Deletes indexed db files for the extension. May only be called on the |
| 79 // webkit thread. | 79 // webkit thread. |
| 80 void DeleteIndexedDBOnWebkitThread( | 80 void DeleteIndexedDBOnWebkitThread( |
| 81 scoped_refptr<content::IndexedDBContext> indexed_db_context); | 81 scoped_refptr<content::IndexedDBContext> indexed_db_context); |
| 82 | 82 |
| 83 // Deletes filesystem files for the extension. May only be called on the | 83 // Deletes filesystem files for the extension. May only be called on the |
| 84 // file thread. | 84 // file thread. |
| 85 void DeleteFileSystemOnFileThread(); | 85 void DeleteFileSystemOnFileThread(); |
| 86 | 86 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 106 scoped_refptr<fileapi::FileSystemContext> file_system_context_; | 106 scoped_refptr<fileapi::FileSystemContext> file_system_context_; |
| 107 | 107 |
| 108 // If non-empty, the extension we're deleting is an isolated app, and this | 108 // If non-empty, the extension we're deleting is an isolated app, and this |
| 109 // is its directory which we should delete. | 109 // is its directory which we should delete. |
| 110 FilePath isolated_app_path_; | 110 FilePath isolated_app_path_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); | 112 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ | 115 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ |
| OLD | NEW |