| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef CONTENT_BROWSER_LOADER_URL_LOADER_REQUEST_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_URL_LOADER_REQUEST_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_URL_LOADER_REQUEST_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_URL_LOADER_REQUEST_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/common/url_loader.mojom.h" | 11 #include "content/public/common/url_loader.mojom.h" |
| 12 #include "content/common/url_loader_factory.mojom.h" | 12 #include "content/public/common/url_loader_factory.mojom.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class ResourceContext; | 16 class ResourceContext; |
| 17 struct ResourceRequest; | 17 struct ResourceRequest; |
| 18 | 18 |
| 19 using StartLoaderCallback = | 19 using StartLoaderCallback = |
| 20 base::OnceCallback<void(mojom::URLLoaderRequest request, | 20 base::OnceCallback<void(mojom::URLLoaderRequest request, |
| 21 mojom::URLLoaderClientPtr client)>; | 21 mojom::URLLoaderClientPtr client)>; |
| 22 | 22 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Returns the URLLoaderFactory if any to be used for subsequent URL requests | 38 // Returns the URLLoaderFactory if any to be used for subsequent URL requests |
| 39 // going forward. Subclasses who want to handle subresource requests etc may | 39 // going forward. Subclasses who want to handle subresource requests etc may |
| 40 // want to override this to return a custom factory. | 40 // want to override this to return a custom factory. |
| 41 virtual mojom::URLLoaderFactoryPtr MaybeCreateSubresourceFactory(); | 41 virtual mojom::URLLoaderFactoryPtr MaybeCreateSubresourceFactory(); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace content | 44 } // namespace content |
| 45 | 45 |
| 46 #endif // CONTENT_BROWSER_LOADER_URL_LOADER_REQUEST_HANDLER_H_ | 46 #endif // CONTENT_BROWSER_LOADER_URL_LOADER_REQUEST_HANDLER_H_ |
| OLD | NEW |