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

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

Issue 5730004: Rename ExtensionsService to ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 10 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
OLDNEW
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 namespace fileapi { 18 namespace fileapi {
19 class SandboxedFileSystemContext; 19 class SandboxedFileSystemContext;
20 } 20 }
21 21
22 class Profile; 22 class Profile;
23 class URLRequestContextGetter; 23 class URLRequestContextGetter;
24 class WebKitContext; 24 class WebKitContext;
25 25
26 // 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
27 // cookies for a given extension. This is used by 27 // cookies for a given extension. This is used by
28 // ExtensionsService::ClearExtensionData() upon uninstalling an extension. 28 // ExtensionService::ClearExtensionData() upon uninstalling an extension.
29 class ExtensionDataDeleter 29 class ExtensionDataDeleter
30 : public base::RefCountedThreadSafe<ExtensionDataDeleter, 30 : public base::RefCountedThreadSafe<ExtensionDataDeleter,
31 BrowserThread::DeleteOnUIThread> { 31 BrowserThread::DeleteOnUIThread> {
32 public: 32 public:
33 ExtensionDataDeleter(Profile* profile, const GURL& extension_url); 33 ExtensionDataDeleter(Profile* profile, const GURL& extension_url);
34 ~ExtensionDataDeleter(); 34 ~ExtensionDataDeleter();
35 35
36 // Start removing data. The extension should not be running when this is 36 // Start removing data. The extension should not be running when this is
37 // called. Cookies are deleted on the current thread, local storage and 37 // called. Cookies are deleted on the current thread, local storage and
38 // databases are deleted asynchronously on the webkit and file threads, 38 // databases are deleted asynchronously on the webkit and file threads,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Webkit context for accessing the DOM storage helper. 75 // Webkit context for accessing the DOM storage helper.
76 scoped_refptr<WebKitContext> webkit_context_; 76 scoped_refptr<WebKitContext> webkit_context_;
77 77
78 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; 78 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter); 80 DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter);
81 }; 81 };
82 82
83 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_ 83 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698