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..91c5c2f4d8d496f11da2065ee093b78d1de359f5 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_system_service.h |
+++ b/chrome/browser/chromeos/gdata/gdata_system_service.h |
@@ -9,7 +9,9 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/singleton.h" |
+#include "base/memory/weak_ptr.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 +43,10 @@ class GDataSystemService : public ProfileKeyedService { |
GDataContactsService* contacts_service() { return contacts_service_.get(); } |
DriveWebAppsRegistry* webapps_registry() { return webapps_registry_.get(); } |
+ // Clears all the local cache files and resets cache-related information in |
+ // the memory. |
+ void ClearCacheAndResetOnUIThread(); |
satorux1
2012/08/01 21:56:31
Please rename it to ClearCache(). This should suff
yoshiki
2012/08/01 23:07:59
Done.
|
+ |
// ProfileKeyedService override: |
virtual void Shutdown() OVERRIDE; |
@@ -58,6 +64,9 @@ class GDataSystemService : public ProfileKeyedService { |
// Unregisters drive mount point from File API. |
void RemoveDriveMountPoint(); |
+ // Used to implement ClearCacheAndResetOnUIThread(). |
satorux1
2012/08/01 21:56:31
Please write some more, like:
// Adds back the dr
yoshiki
2012/08/01 23:07:59
Done.
|
+ void AddBackDrivemountPoint(GDataFileError error, const FilePath& file_path); |
satorux1
2012/08/01 21:56:31
Drivemount -> DriveMount
yoshiki
2012/08/01 23:07:59
Done.
|
+ |
friend class GDataSystemServiceFactory; |
Profile* profile_; |
@@ -70,6 +79,7 @@ class GDataSystemService : public ProfileKeyedService { |
scoped_ptr<GDataDownloadObserver> download_observer_; |
scoped_ptr<GDataSyncClient> sync_client_; |
scoped_ptr<GDataContactsService> contacts_service_; |
+ base::WeakPtrFactory<GDataSystemService> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(GDataSystemService); |
}; |