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

Side by Side Diff: content/common/image_downloader/image_downloader.mojom

Issue 1085783002: Replace image_messages.h with Mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to master@{#333882} Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module image_downloader;
6
7 import "skia/public/interfaces/bitmap.mojom";
8 import "ui/mojo/geometry/geometry.mojom";
9
10 struct DownloadRequest {
11 string url;
12 bool is_favicon;
13 uint32 max_bitmap_size;
14 bool bypass_cache;
15 };
16
17 struct DownloadResult {
18 int32 http_status_code;
19 array<skia.Bitmap> images;
20 array<mojo.Size> original_image_sizes;
21 };
22
23 interface ImageDownloader {
24 // Called by ImageDownloaderDispatcher, sends download request
Anand Mistry (off Chromium) 2015/06/12 08:19:38 This is an interface. Describe the intended functi
leonhsl(Using Gerrit) 2015/06/15 08:09:43 Done.
25 // and receives async download result.
26 // Implemented by ImageDownloaderImpl to fetch image data actually.
27 // Each call is independent, overlapping calls are possible.
28 DownloadImage(DownloadRequest request) => (DownloadResult result);
29 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698