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

Unified Diff: chrome/browser/extensions/data_deleter.h

Issue 10824204: Move small c/b/extensions classes into extensions namespace no.2 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq + nitfix Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/browser_tag_browsertest.cc ('k') | chrome/browser/extensions/data_deleter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/data_deleter.h
diff --git a/chrome/browser/extensions/extension_data_deleter.h b/chrome/browser/extensions/data_deleter.h
similarity index 82%
rename from chrome/browser/extensions/extension_data_deleter.h
rename to chrome/browser/extensions/data_deleter.h
index d36b91e968060468d3b66bfaa551f7ff44b1932e..a0787957a1800256d455520e87e48a05ea88511e 100644
--- a/chrome/browser/extensions/extension_data_deleter.h
+++ b/chrome/browser/extensions/data_deleter.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
+#define CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
#include "base/file_path.h"
#include "base/memory/ref_counted.h"
@@ -32,12 +32,13 @@ class DatabaseTracker;
class Profile;
+namespace extensions {
+
// A helper class that takes care of removing local storage, databases and
// cookies for a given extension. This is used by
// ExtensionService::ClearExtensionData() upon uninstalling an extension.
-class ExtensionDataDeleter
- : public base::RefCountedThreadSafe<
- ExtensionDataDeleter, content::BrowserThread::DeleteOnUIThread> {
+class DataDeleter : public base::RefCountedThreadSafe<
+ DataDeleter, content::BrowserThread::DeleteOnUIThread> {
public:
// Starts removing data. The extension should not be running when this is
// called. Cookies are deleted on the current thread, local storage and
@@ -52,14 +53,13 @@ class ExtensionDataDeleter
private:
friend struct content::BrowserThread::DeleteOnThread<
content::BrowserThread::UI>;
- friend class base::DeleteHelper<ExtensionDataDeleter>;
+ friend class base::DeleteHelper<DataDeleter>;
- ExtensionDataDeleter(
- Profile* profile,
- const std::string& extension_id,
- const GURL& storage_origin,
- bool is_storage_isolated);
- ~ExtensionDataDeleter();
+ DataDeleter(Profile* profile,
+ const std::string& extension_id,
+ const GURL& storage_origin,
+ bool is_storage_isolated);
+ ~DataDeleter();
// Deletes the cookies for the extension. May only be called on the io
// thread.
@@ -103,7 +103,9 @@ class ExtensionDataDeleter
// is its directory which we should delete.
FilePath isolated_app_path_;
- DISALLOW_COPY_AND_ASSIGN(ExtensionDataDeleter);
+ DISALLOW_COPY_AND_ASSIGN(DataDeleter);
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DATA_DELETER_H_
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_DATA_DELETER_H_
« no previous file with comments | « chrome/browser/extensions/browser_tag_browsertest.cc ('k') | chrome/browser/extensions/data_deleter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698