OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "chrome/browser/browser_thread.h" | 11 #include "chrome/browser/browser_thread.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 | 13 |
14 namespace webkit_database { | 14 namespace webkit_database { |
15 class DatabaseTracker; | 15 class DatabaseTracker; |
16 } | 16 } |
17 | 17 |
18 class BrowserFileSystemContext; | 18 namespace fileapi { |
| 19 class SandboxedFileSystemContext; |
| 20 } |
| 21 |
19 class Profile; | 22 class Profile; |
20 class URLRequestContextGetter; | 23 class URLRequestContextGetter; |
21 class WebKitContext; | 24 class WebKitContext; |
22 | 25 |
23 // A helper class that takes care of removing local storage, databases and | 26 // A helper class that takes care of removing local storage, databases and |
24 // cookies for a given extension. This is used by | 27 // cookies for a given extension. This is used by |
25 // ExtensionsService::ClearExtensionData() upon uninstalling an extension. | 28 // ExtensionsService::ClearExtensionData() upon uninstalling an extension. |
26 class ExtensionDataDeleter | 29 class ExtensionDataDeleter |
27 : public base::RefCountedThreadSafe<ExtensionDataDeleter, | 30 : public base::RefCountedThreadSafe<ExtensionDataDeleter, |
28 BrowserThread::DeleteOnUIThread> { | 31 BrowserThread::DeleteOnUIThread> { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 68 |
66 // The URL of the extension we're removing data for. | 69 // The URL of the extension we're removing data for. |
67 GURL extension_url_; | 70 GURL extension_url_; |
68 | 71 |
69 // The security origin identifier for which we're deleting stuff. | 72 // The security origin identifier for which we're deleting stuff. |
70 string16 origin_id_; | 73 string16 origin_id_; |
71 | 74 |
72 // Webkit context for accessing the DOM storage helper. | 75 // Webkit context for accessing the DOM storage helper. |
73 scoped_refptr<WebKitContext> webkit_context_; | 76 scoped_refptr<WebKitContext> webkit_context_; |
74 | 77 |
75 scoped_refptr<BrowserFileSystemContext> file_system_context_; | 78 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; |
76 | 79 |
77 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); | 80 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); |
78 }; | 81 }; |
79 | 82 |
80 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ |
OLD | NEW |