| 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..87513256c5bb44d2163a3e02202a8067e252ceb3 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,11 @@ class MediaTransferProtocolManager {
|
| const GetFileInfoCallback& callback) = 0;
|
|
|
| // Creates the global MediaTransferProtocolManager instance.
|
| - static void Initialize();
|
| + // 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();
|
|
|