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

Unified Diff: chrome/browser/storage_monitor/storage_monitor.h

Issue 16187002: Allow the consumer of storage monitor to register callback when the initialization is completed. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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/storage_monitor/storage_monitor.h
diff --git a/chrome/browser/storage_monitor/storage_monitor.h b/chrome/browser/storage_monitor/storage_monitor.h
index 7eab0b7743b925d9b3fffa009623e946c32b496d..b90a6fbf773fcaccde96d912284eae0cce335559 100644
--- a/chrome/browser/storage_monitor/storage_monitor.h
+++ b/chrome/browser/storage_monitor/storage_monitor.h
@@ -64,6 +64,12 @@ class StorageMonitor {
// somewhat shorter than a process Singleton.
static StorageMonitor* GetInstance();
+ // Register a callback to be called when the initialization is completed, e.g.
+ // the metdata of storage devices are already retrieved. If the initialization
+ // is already completed, the provided callback will be invoked immediately
+ // with the current calling stack.
+ void RegisterInitCompletedCallback(base::Closure callback);
wrong vandebo 2013/05/29 15:08:35 I don't understand why you would want this method.
Hongbo Min 2013/05/29 15:15:39 Since the RemovableStorageObserver only gets notif
+
// Initialize the storage monitor. The provided callback, if non-null,
// will be called when initialization is complete. If initialization has
// already completed, this callback will be invoked within the calling stack.
« no previous file with comments | « no previous file | chrome/browser/storage_monitor/storage_monitor.cc » ('j') | chrome/browser/storage_monitor/storage_monitor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698