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 in a | |
74 // DOMStorageContext sequenced task. | |
75 void DeleteLocalStorageInSequencedTask( | |
76 content::DOMStorageContext* dom_storage_context); | |
77 | |
78 // Deletes indexed db files for the extension. May only be called on the | 73 // Deletes indexed db files for the extension. May only be called on the |
79 // webkit thread. | 74 // webkit thread. |
80 void DeleteIndexedDBOnWebkitThread( | 75 void DeleteIndexedDBOnWebkitThread( |
81 scoped_refptr<content::IndexedDBContext> indexed_db_context); | 76 scoped_refptr<content::IndexedDBContext> indexed_db_context); |
82 | 77 |
83 // Deletes filesystem files for the extension. May only be called on the | 78 // Deletes filesystem files for the extension. May only be called on the |
84 // file thread. | 79 // file thread. |
85 void DeleteFileSystemOnFileThread(); | 80 void DeleteFileSystemOnFileThread(); |
86 | 81 |
87 // Deletes appcache files for the extension. May only be called on the IO | 82 // Deletes appcache files for the extension. May only be called on the IO |
(...skipping 18 matching lines...) Expand all Loading... |
106 scoped_refptr<fileapi::FileSystemContext> file_system_context_; | 101 scoped_refptr<fileapi::FileSystemContext> file_system_context_; |
107 | 102 |
108 // If non-empty, the extension we're deleting is an isolated app, and this | 103 // If non-empty, the extension we're deleting is an isolated app, and this |
109 // is its directory which we should delete. | 104 // is its directory which we should delete. |
110 FilePath isolated_app_path_; | 105 FilePath isolated_app_path_; |
111 | 106 |
112 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); | 107 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); |
113 }; | 108 }; |
114 | 109 |
115 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ | 110 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ |
OLD | NEW |