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

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

Issue 11419307: Garbage Collect the Storage directory on next profile start after an extension uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: done done Created 8 years 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
« no previous file with comments | « no previous file | chrome/browser/extensions/data_deleter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DATA_DELETER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
6 #define CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
7 7
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 9
10 class Profile; 10 class Profile;
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class DataDeleter { 14 class DataDeleter {
15 public: 15 public:
16 // Starts removing data. The extension should not be running when this is 16 // Starts removing data. The extension should not be running when this is
17 // called. Cookies are deleted on the current thread, local storage and 17 // called. Cookies are deleted on the current thread, local storage and
18 // databases/settings are deleted asynchronously on the webkit and file 18 // databases/settings are deleted asynchronously on the webkit and file
19 // threads, respectively. This function must be called from the UI thread. 19 // threads, respectively. This function must be called from the UI thread.
20 static void StartDeleting( 20 static void StartDeleting(
21 Profile* profile, 21 Profile* profile,
22 const std::string& extension_id, 22 const std::string& extension_id,
23 const GURL& storage_origin, 23 const GURL& storage_origin);
24 bool is_storage_isolated);
25 24
26 DISALLOW_COPY_AND_ASSIGN(DataDeleter); 25 DISALLOW_COPY_AND_ASSIGN(DataDeleter);
27 }; 26 };
28 27
29 } // namespace extensions 28 } // namespace extensions
30 29
31 #endif // CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_ 30 #endif // CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/data_deleter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698