| OLD | NEW |
| 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 [DartPackage="mojo_services"] |
| 6 module mojo; | 6 module mojo; |
| 7 | 7 |
| 8 import "mojo/public/interfaces/network/url_request.mojom"; | 8 import "mojo/public/interfaces/network/url_request.mojom"; |
| 9 import "mojo/public/interfaces/network/url_response.mojom"; | 9 import "mojo/public/interfaces/network/url_response.mojom"; |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // 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 |
| 47 // 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. |
| 48 // 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 |
| 49 // responsibility of the interceptor not to create infinite loops. | 49 // responsibility of the interceptor not to create infinite loops. |
| 50 // TODO(qsr): Change this to an union. | 50 // TODO(qsr): Change this to an union. |
| 51 struct URLLoaderInterceptorResponse { | 51 struct URLLoaderInterceptorResponse { |
| 52 URLRequest? request; | 52 URLRequest? request; |
| 53 URLResponse? response; | 53 URLResponse? response; |
| 54 }; | 54 }; |
| OLD | NEW |