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

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: fix browser_tests 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | device/media_transfer_protocol/media_transfer_protocol_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/media_transfer_protocol/media_transfer_protocol_manager.h
===================================================================
--- device/media_transfer_protocol/media_transfer_protocol_manager.h (revision 194743)
+++ 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 returns the global MediaTransferProtocolManager instance.
// 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);
};
} // namespace device
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | device/media_transfer_protocol/media_transfer_protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698