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

Unified Diff: device/media_transfer_protocol/media_transfer_protocol_manager.h

Issue 14016002: Storage Monitor: Make StorageMonitorLinux own the MediaTransferProtocolManager. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Rebase to ToT, still need to fix CrOS Created 7 years, 8 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: device/media_transfer_protocol/media_transfer_protocol_manager.h
===================================================================
--- device/media_transfer_protocol/media_transfer_protocol_manager.h (revision 193326)
+++ device/media_transfer_protocol/media_transfer_protocol_manager.h (working copy)
@@ -132,19 +132,13 @@
uint32 file_id,
const GetFileInfoCallback& callback) = 0;
- // Creates the global MediaTransferProtocolManager instance.
+ // Creates and return the global MediaTransferProtocolManager instance.
Greg Billock 2013/04/10 18:27:25 returns
Lei Zhang 2013/04/11 06:54:04 Done.
// On Linux, |loop_proxy| specifies the message loop proxy to process
// asynchronous operations.
// On ChromeOS, |loop_proxy| is set to NULL because ChromeOS already has a
// dedicated message loop proxy.
- static void Initialize(scoped_refptr<base::MessageLoopProxy> loop_proxy);
-
- // Destroys the global MediaTransferProtocolManager instance if it exists.
- static void Shutdown();
-
- // Returns a pointer to the global MediaTransferProtocolManager instance.
- // Initialize() should already have been called.
- static MediaTransferProtocolManager* GetInstance();
+ static MediaTransferProtocolManager* Initialize(
+ scoped_refptr<base::MessageLoopProxy> loop_proxy, bool is_dummy);
};
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698