| 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" |
| 11 #include "base/message_loop_helpers.h" |
| 11 #include "base/string16.h" | 12 #include "base/string16.h" |
| 12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 13 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 14 | 15 |
| 15 namespace webkit_database { | 16 namespace webkit_database { |
| 16 class DatabaseTracker; | 17 class DatabaseTracker; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace fileapi { | 20 namespace fileapi { |
| 20 class FileSystemContext; | 21 class FileSystemContext; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 41 // threads, respectively. This function must be called from the UI thread. | 42 // threads, respectively. This function must be called from the UI thread. |
| 42 static void StartDeleting( | 43 static void StartDeleting( |
| 43 Profile* profile, | 44 Profile* profile, |
| 44 const std::string& extension_id, | 45 const std::string& extension_id, |
| 45 const GURL& storage_origin, | 46 const GURL& storage_origin, |
| 46 bool is_storage_isolated); | 47 bool is_storage_isolated); |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 friend struct content::BrowserThread::DeleteOnThread< | 50 friend struct content::BrowserThread::DeleteOnThread< |
| 50 content::BrowserThread::UI>; | 51 content::BrowserThread::UI>; |
| 51 friend class DeleteTask<ExtensionDataDeleter>; | 52 friend class base::DeleteHelper<ExtensionDataDeleter>; |
| 52 | 53 |
| 53 ExtensionDataDeleter( | 54 ExtensionDataDeleter( |
| 54 Profile* profile, | 55 Profile* profile, |
| 55 const std::string& extension_id, | 56 const std::string& extension_id, |
| 56 const GURL& storage_origin, | 57 const GURL& storage_origin, |
| 57 bool is_storage_isolated); | 58 bool is_storage_isolated); |
| 58 ~ExtensionDataDeleter(); | 59 ~ExtensionDataDeleter(); |
| 59 | 60 |
| 60 // Deletes the cookies for the extension. May only be called on the io | 61 // Deletes the cookies for the extension. May only be called on the io |
| 61 // thread. | 62 // thread. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 scoped_refptr<ChromeAppCacheService> appcache_service_; | 105 scoped_refptr<ChromeAppCacheService> appcache_service_; |
| 105 | 106 |
| 106 // If non-empty, the extension we're deleting is an isolated app, and this | 107 // If non-empty, the extension we're deleting is an isolated app, and this |
| 107 // is its directory which we should delete. | 108 // is its directory which we should delete. |
| 108 FilePath isolated_app_path_; | 109 FilePath isolated_app_path_; |
| 109 | 110 |
| 110 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); | 111 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ | 114 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ |
| OLD | NEW |