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

Unified Diff: chrome/browser/chromeos/gdata/gdata_system_service.h

Issue 10823125: Drive: add a method to clear all local cache. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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/chromeos/gdata/gdata_system_service.h
diff --git a/chrome/browser/chromeos/gdata/gdata_system_service.h b/chrome/browser/chromeos/gdata/gdata_system_service.h
index 070fa7718f69a685734624768f5d04ef599ca758..91e96be35aaffaf8077febe4ba012b40badf2cb8 100644
--- a/chrome/browser/chromeos/gdata/gdata_system_service.h
+++ b/chrome/browser/chromeos/gdata/gdata_system_service.h
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/threading/sequenced_worker_pool.h"
+#include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
@@ -41,6 +42,8 @@ class GDataSystemService : public ProfileKeyedService {
GDataContactsService* contacts_service() { return contacts_service_.get(); }
DriveWebAppsRegistry* webapps_registry() { return webapps_registry_.get(); }
+ void ClearCacheAndResetOnUIThread();
satorux1 2012/08/01 20:50:31 function comment is missing.
yoshiki 2012/08/01 21:44:59 Done.
+
// ProfileKeyedService override:
virtual void Shutdown() OVERRIDE;
@@ -58,6 +61,8 @@ class GDataSystemService : public ProfileKeyedService {
// Unregisters drive mount point from File API.
void RemoveDriveMountPoint();
+ void ClearCacheAndReset(GDataFileError error, const FilePath& file_path);
satorux1 2012/08/01 20:50:31 function comment is missing.
yoshiki 2012/08/01 21:44:59 Done.
+
friend class GDataSystemServiceFactory;
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698