| 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 module mojo; | 5 module mojo; |
| 6 | 6 |
| 7 import "third_party/mojo/src/mojo/public/interfaces/network/url_request.mojom"; | 7 import "third_party/mojo/src/mojo/public/interfaces/network/url_request.mojom"; |
| 8 import "third_party/mojo/src/mojo/public/interfaces/network/url_response.mojom"; | 8 import "third_party/mojo/src/mojo/public/interfaces/network/url_response.mojom"; |
| 9 | 9 |
| 10 // Factory for |URLLoaderInterceptor|. The factory is called once per URLLoader | 10 // Factory for |URLLoaderInterceptor|. The factory is called once per URLLoader |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 // Response for the intercept methods. One and only one of the two fields | 45 // 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. | 46 // 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 | 47 // 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. | 48 // responsibility of the interceptor not to create infinite loops. |
| 49 // TODO(qsr): Change this to an union. | 49 // TODO(qsr): Change this to an union. |
| 50 struct URLLoaderInterceptorResponse { | 50 struct URLLoaderInterceptorResponse { |
| 51 URLRequest? request; | 51 URLRequest? request; |
| 52 URLResponse? response; | 52 URLResponse? response; |
| 53 }; | 53 }; |
| OLD | NEW |