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

Unified Diff: chrome/browser/profiles/profile.h

Issue 7210006: AppCaches which belong to hosted apps are not protected from deletion (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Clearing appcaches & waiting in Shutdown(). Created 9 years, 5 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
Index: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index a223ef403244d097b0b6b28380865a82497d933e..b2026ada0bcea7f569cdf41ae5319532a2373e04 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -16,6 +16,7 @@
namespace base {
class Time;
+class WaitableEvent;
}
namespace content {
@@ -515,6 +516,11 @@ class Profile {
// profile.
virtual prerender::PrerenderManager* GetPrerenderManager() = 0;
+ // Clears the app cache (if the profile settings to dictate), returns a
+ // WaitableEvent for signalling when the clearing is complete, or NULL if
+ // there is nothing to clear. The WaitableEvent is not owned by the caller.
+ virtual base::WaitableEvent* ClearAppCache();
+
std::string GetDebugName();
// Returns whether it is a guest session.

Powered by Google App Engine
This is Rietveld 408576698