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

Unified Diff: content/common/url_loader_factory.mojom

Issue 2390983003: Implement Mojo SyncLoad (Closed)
Patch Set: unneeded |result| Created 4 years, 2 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: content/common/url_loader_factory.mojom
diff --git a/content/common/url_loader_factory.mojom b/content/common/url_loader_factory.mojom
index 0cd0cb872ef5c6b0f18a38a4a4fc0b2222f6aeaf..5b7aab4c80a89049d8f1fc9a882e7c774e79317b 100644
--- a/content/common/url_loader_factory.mojom
+++ b/content/common/url_loader_factory.mojom
@@ -6,6 +6,9 @@ module content.mojom;
import "url_loader.mojom";
+[Native]
+struct URLSyncLoadResult;
+
interface URLLoaderFactory {
// Creats a URLLoader and starts loading with the given |request|. |client|'s
// method will be called when certain events related to that loading
@@ -16,4 +19,11 @@ interface URLLoaderFactory {
int32 request_id,
URLRequest request,
URLLoaderClient client);
-};
+
+ // Loads the resource for the given |request| synchronously.
+ // |request_id| is for compatibility with the existing Chrome IPC.
+ [Sync] SyncLoad(int32 routing_id,
+ int32 request_id,
+ URLRequest request)
+ => (URLSyncLoadResult result);
+};

Powered by Google App Engine
This is Rietveld 408576698