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

Unified Diff: device/media_transfer_protocol/media_transfer_protocol_manager.h

Issue 12092074: Remove 'content' dependency from device/media_transfer_protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fixed comments Created 7 years, 11 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
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();
« no previous file with comments | « device/media_transfer_protocol/DEPS ('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