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

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.h

Issue 2715493002: mediaview: Support watchers in ArcFileSystemOperationRunner. (Closed)
Patch Set: Review ready. Created 3 years, 10 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: chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.h
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.h b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.h
index 98740faa66260af6b9443bb88d49fdc2432ba3f7..31fd0b604e252035af9ad938454c15430080db19 100644
--- a/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.h
+++ b/chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner_util.h
@@ -7,6 +7,7 @@
#include <string>
+#include "chrome/browser/chromeos/arc/fileapi/arc_file_system_operation_runner.h"
#include "components/arc/common/file_system.mojom.h"
class GURL;
@@ -14,12 +15,16 @@ class GURL;
namespace arc {
namespace file_system_operation_runner_util {
-using GetFileSizeCallback = mojom::FileSystemInstance::GetFileSizeCallback;
+using GetFileSizeCallback = ArcFileSystemOperationRunner::GetFileSizeCallback;
using OpenFileToReadCallback =
- mojom::FileSystemInstance::OpenFileToReadCallback;
-using GetDocumentCallback = mojom::FileSystemInstance::GetDocumentCallback;
+ ArcFileSystemOperationRunner::OpenFileToReadCallback;
+using GetDocumentCallback = ArcFileSystemOperationRunner::GetDocumentCallback;
using GetChildDocumentsCallback =
- mojom::FileSystemInstance::GetChildDocumentsCallback;
+ ArcFileSystemOperationRunner::GetChildDocumentsCallback;
+using AddWatcherCallback = ArcFileSystemOperationRunner::AddWatcherCallback;
+using RemoveWatcherCallback =
+ ArcFileSystemOperationRunner::RemoveWatcherCallback;
+using WatcherCallback = ArcFileSystemOperationRunner::WatcherCallback;
// Utility functions to post a task to run ArcFileSystemOperationRunner methods.
// These functions must be called on the IO thread.
@@ -33,6 +38,12 @@ void GetDocumentOnIOThread(const std::string& authority,
void GetChildDocumentsOnIOThread(const std::string& authority,
const std::string& parent_document_id,
const GetChildDocumentsCallback& callback);
+void AddWatcherOnIOThread(const std::string& authority,
+ const std::string& document_id,
+ const WatcherCallback& watcher_callback,
+ const AddWatcherCallback& callback);
+void RemoveWatcherOnIOThread(int64_t watcher_id,
+ const RemoveWatcherCallback& callback);
} // namespace file_system_operation_runner_util
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698