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

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

Issue 2574173002: mediaview: Implement ArcDocumentsProviderRoot. (Closed)
Patch Set: Revive unit tests & fixed build breakage. Created 4 years 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_instance_util.h
diff --git a/chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h b/chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h
index 4fa207a277cf4a93e0c00ca23b3d814086858371..0ebc74465d4109130e68fbf35e9e065ab22ee3ee 100644
--- a/chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h
+++ b/chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_
#define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_
+#include <string>
+
#include "components/arc/common/file_system.mojom.h"
class GURL;
@@ -15,16 +17,22 @@ namespace file_system_instance_util {
using GetFileSizeCallback = mojom::FileSystemInstance::GetFileSizeCallback;
using OpenFileToReadCallback =
mojom::FileSystemInstance::OpenFileToReadCallback;
+using GetDocumentCallback = mojom::FileSystemInstance::GetDocumentCallback;
+using GetChildDocumentsCallback =
+ mojom::FileSystemInstance::GetChildDocumentsCallback;
-// Utility which posts a task to run GetFileSize.
-// This function must be called on the IO thread.
+// Utility functions to post a task to run FileSystemInstance methods.
+// These functions must be called on the IO thread.
void GetFileSizeOnIOThread(const GURL& arc_url,
const GetFileSizeCallback& callback);
-
-// Utility which posts a task to run OpenFileToRead.
-// This function must be called on the IO thread.
void OpenFileToReadOnIOThread(const GURL& arc_url,
const OpenFileToReadCallback& callback);
+void GetDocumentOnIOThread(const std::string& authority,
+ const std::string& document_id,
+ const GetDocumentCallback& callback);
+void GetChildDocumentsOnIOThread(const std::string& authority,
+ const std::string& parent_document_id,
+ const GetChildDocumentsCallback& callback);
} // namespace file_system_instance_util
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698