Chromium Code Reviews| Index: device/media_transfer_protocol/media_transfer_protocol_manager.h |
| diff --git a/device/media_transfer_protocol/media_transfer_protocol_manager.h b/device/media_transfer_protocol/media_transfer_protocol_manager.h |
| index 5c416b5f6689d1039f65463865c547fe3dc7f991..45fa0fa831acbb292cb36c4c5e82d6c89395a7b9 100644 |
| --- a/device/media_transfer_protocol/media_transfer_protocol_manager.h |
| +++ b/device/media_transfer_protocol/media_transfer_protocol_manager.h |
| @@ -9,6 +9,7 @@ |
| #include <vector> |
| #include "base/callback.h" |
| +#include "base/memory/ref_counted.h" |
| #include "build/build_config.h" |
| #if !defined(OS_LINUX) |
| @@ -18,6 +19,10 @@ |
| class MtpFileEntry; |
| class MtpStorageInfo; |
| +namespace base { |
| +class MessageLoopProxy; |
| +} |
| + |
| namespace device { |
| // This class handles the interaction with mtpd. |
| @@ -128,7 +133,10 @@ class MediaTransferProtocolManager { |
| const GetFileInfoCallback& callback) = 0; |
| // Creates the global MediaTransferProtocolManager instance. |
| - static void Initialize(); |
| + // On Linux, |loop_proxy| specifies the Bus object message loop proxy |
|
Lei Zhang
2013/01/31 20:56:38
Someone reading the header won't know what Bus obj
kmadhusu
2013/01/31 22:07:59
Done.
|
| + // to process asynchronous operations. |
| + // On ChromeOS, |loop_proxy| is set to NULL. |
|
Lei Zhang
2013/01/31 20:56:38
... set to NULL because ChromeOS already has a ded
kmadhusu
2013/01/31 22:07:59
Done.
|
| + static void Initialize(scoped_refptr<base::MessageLoopProxy> loop_proxy); |
| // Destroys the global MediaTransferProtocolManager instance if it exists. |
| static void Shutdown(); |