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

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

Issue 2464333003: arc: Add utility functions to implement ARC content file system (Closed)
Patch Set: Address comments Created 4 years, 1 month 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/intent_helper_util.h
diff --git a/chrome/browser/chromeos/arc/fileapi/intent_helper_util.h b/chrome/browser/chromeos/arc/fileapi/intent_helper_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f031cfcfcd10cd210944c36ba2ae8cedc07a48d
--- /dev/null
+++ b/chrome/browser/chromeos/arc/fileapi/intent_helper_util.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// 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_
+
+#include "components/arc/common/intent_helper.mojom.h"
+#include "url/gurl.h"
+
+namespace arc {
+namespace intent_helper_util {
+
+// Utility which posts a task to run IntentHelperInstance::GetFileSize.
hidehiko 2016/11/10 07:10:10 Nice. This gets totally clear to me.
+// This function must be called on the IO thread.
+void GetFileSizeOnIOThread(
+ const GURL& arc_url,
+ const mojom::IntentHelperInstance::GetFileSizeCallback& callback);
+
+// Utility which posts a task to run IntentHelperInstance::OpenFileToRead.
+// This function must be called on the IO thread.
+void OpenFileToReadOnIOThread(
+ const GURL& arc_url,
+ const mojom::IntentHelperInstance::OpenFileToReadCallback& callback);
+
+} // namespace intent_helper_util
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_INTENT_HELPER_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698