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

Side by Side Diff: mojo/services/network/public/interfaces/url_loader_interceptor.mojom

Issue 1262263003: Add DartPackage annotation to all mojo_services mojoms (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 2015 The Chromium Authors. All rights reserved. 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 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 [DartPackage="mojo_services"]
5 module mojo; 6 module mojo;
6 7
7 import "mojo/public/interfaces/network/url_request.mojom"; 8 import "mojo/public/interfaces/network/url_request.mojom";
8 import "mojo/public/interfaces/network/url_response.mojom"; 9 import "mojo/public/interfaces/network/url_response.mojom";
9 10
10 // Factory for |URLLoaderInterceptor|. The factory is called once per URLLoader 11 // Factory for |URLLoaderInterceptor|. The factory is called once per URLLoader
11 // and will be associated to it. 12 // and will be associated to it.
12 interface URLLoaderInterceptorFactory { 13 interface URLLoaderInterceptorFactory {
13 Create(URLLoaderInterceptor& interceptor); 14 Create(URLLoaderInterceptor& interceptor);
14 }; 15 };
(...skipping 29 matching lines...) Expand all
44 45
45 // Response for the intercept methods. One and only one of the two fields 46 // Response for the intercept methods. One and only one of the two fields
46 // must be set. If |request| is set, the url loader will execute the request. 47 // must be set. If |request| is set, the url loader will execute the request.
47 // If |response| is set, the url loader will send it to its client. It is the 48 // If |response| is set, the url loader will send it to its client. It is the
48 // responsibility of the interceptor not to create infinite loops. 49 // responsibility of the interceptor not to create infinite loops.
49 // TODO(qsr): Change this to an union. 50 // TODO(qsr): Change this to an union.
50 struct URLLoaderInterceptorResponse { 51 struct URLLoaderInterceptorResponse {
51 URLRequest? request; 52 URLRequest? request;
52 URLResponse? response; 53 URLResponse? response;
53 }; 54 };
OLDNEW
« no previous file with comments | « mojo/services/network/public/interfaces/url_loader.mojom ('k') | mojo/services/network/public/interfaces/web_socket.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698