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

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

Issue 2511973003: Use ArcFileSystemInstance to access files on ARC. (Closed)
Patch Set: Rebased to ToT. 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/intent_helper_util.h b/chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h
similarity index 57%
rename from chrome/browser/chromeos/arc/fileapi/intent_helper_util.h
rename to chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h
index 0944dd2c6c0baadc12b510461557688d5fe5704f..4fa207a277cf4a93e0c00ca23b3d814086858371 100644
--- a/chrome/browser/chromeos/arc/fileapi/intent_helper_util.h
+++ b/chrome/browser/chromeos/arc/fileapi/arc_file_system_instance_util.h
@@ -2,19 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_INTENT_HELPER_UTIL_H_
-#define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_INTENT_HELPER_UTIL_H_
+#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 "components/arc/common/intent_helper.mojom.h"
-#include "url/gurl.h"
+#include "components/arc/common/file_system.mojom.h"
+
+class GURL;
namespace arc {
-namespace intent_helper_util {
+namespace file_system_instance_util {
-using GetFileSizeCallback =
- mojom::IntentHelperInstance::GetFileSizeDeprecatedCallback;
+using GetFileSizeCallback = mojom::FileSystemInstance::GetFileSizeCallback;
using OpenFileToReadCallback =
- mojom::IntentHelperInstance::OpenFileToReadDeprecatedCallback;
+ mojom::FileSystemInstance::OpenFileToReadCallback;
// Utility which posts a task to run GetFileSize.
// This function must be called on the IO thread.
@@ -26,7 +26,7 @@ void GetFileSizeOnIOThread(const GURL& arc_url,
void OpenFileToReadOnIOThread(const GURL& arc_url,
const OpenFileToReadCallback& callback);
-} // namespace intent_helper_util
+} // namespace file_system_instance_util
} // namespace arc
-#endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_INTENT_HELPER_UTIL_H_
+#endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_FILE_SYSTEM_INSTANCE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698