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

Unified Diff: components/arc/common/intent_helper.mojom

Issue 2469963003: arc: Add methods to IntentHelperInstance to read ARC contents (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | components/arc/test/fake_intent_helper_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/intent_helper.mojom
diff --git a/components/arc/common/intent_helper.mojom b/components/arc/common/intent_helper.mojom
index 14c7212e3cc00bdbd26095e82d8714312620720a..ed4f217bb620e459b4651800a4eabf80e401bf9d 100644
--- a/components/arc/common/intent_helper.mojom
+++ b/components/arc/common/intent_helper.mojom
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// Next MinVersion: 15
+// Next MinVersion: 16
module arc.mojom;
@@ -108,7 +108,7 @@ interface IntentHelperHost {
};
// Sends intents to ARC on behalf of Chrome.
-// Next method ID: 11
+// Next method ID: 13
interface IntentHelperInstance {
// Sets the given package as a preferred package. The next time an ACTION_VIEW
// intent is sent with a URL that requires disambiguation, instead of opening
@@ -116,6 +116,9 @@ interface IntentHelperInstance {
// When multiple packages are set as preferred, the most recent setting wins.
[MinVersion=7] AddPreferredPackage@8(string package_name);
+ // Asks the ContentResolver for the size of the file specified by the URL.
+ [MinVersion=15] GetFileSize@11(string url) => (int64 size);
+
// Passes an intent to an activity.
[MinVersion=12] HandleIntent@10(IntentInfo intent, ActivityName activity);
@@ -131,6 +134,10 @@ interface IntentHelperInstance {
// Establishes full-duplex communication with the host.
Init@0(IntentHelperHost host_ptr);
+ // Asks the ContentResolver to get an FD to read the file specified by the
+ // URL.
+ [MinVersion=15] OpenFileToRead@12(string url) => (handle fd);
+
// Requests 48dp * 48dp icons of the |activities| suitable for the
// |scale_factor|. An array of icon data will be returned.
[MinVersion=3] RequestActivityIcons@4(array<ActivityName> activities,
« no previous file with comments | « no previous file | components/arc/test/fake_intent_helper_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698