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

Side by Side Diff: mojo/services/authenticating_url_loader/public/interfaces/authenticating_url_loader.mojom

Issue 1129063008: Move mojom definitions of URL{Request,Response} into SDK (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update for monet 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mojo; 5 module mojo;
6 6
7 import "network/public/interfaces/url_loader.mojom"; 7 import "mojo/public/interfaces/network/url_request.mojom";
8 import "mojo/public/interfaces/network/url_response.mojom";
8 9
9 interface AuthenticatingURLLoader { 10 interface AuthenticatingURLLoader {
10 // Loads the given |request|, asynchronously producing |response|. If the 11 // Loads the given |request|, asynchronously producing |response|. If the
11 // server indicates that authentication is needed, attempts to obtain an 12 // server indicates that authentication is needed, attempts to obtain an
12 // OAuth2 token from the user and use that as authentication. Consult 13 // OAuth2 token from the user and use that as authentication. Consult
13 // |response| to determine if the request resulted in an error, was 14 // |response| to determine if the request resulted in an error, was
14 // redirected, or has a response body to be consumed. 15 // redirected, or has a response body to be consumed.
15 Start(URLRequest request) => (URLResponse response); 16 Start(URLRequest request) => (URLResponse response);
16 17
17 // If the request passed to |Start| had |auto_follow_redirects| set to false, 18 // If the request passed to |Start| had |auto_follow_redirects| set to false,
18 // then upon receiving an URLResponse with a non-NULL |redirect_url| field, 19 // then upon receiving an URLResponse with a non-NULL |redirect_url| field,
19 // |FollowRedirect| may be called to load the URL indicated by the redirect. 20 // |FollowRedirect| may be called to load the URL indicated by the redirect.
20 FollowRedirect() => (URLResponse response); 21 FollowRedirect() => (URLResponse response);
21 }; 22 };
OLDNEW
« no previous file with comments | « mojo/public/interfaces/network/url_response.mojom ('k') | mojo/services/content_handler/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698