Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: chrome/browser/extensions/extension_data_deleter.h

Issue 9015021: Remove DeleteTask and convert remaining users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix last Linux gotchas (upload attempt #2) Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.h ('k') | chrome/browser/extensions/extension_function.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698