| OLD | NEW |
| 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 #ifndef CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 5 #ifndef CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
| 6 #define CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 6 #define CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } // namespace base | 21 } // namespace base |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 | 24 |
| 25 class ResourceDispatcher; | 25 class ResourceDispatcher; |
| 26 struct ResourceResponseInfo; | 26 struct ResourceResponseInfo; |
| 27 | 27 |
| 28 // PlzNavigate: Used to override parameters of the navigation request. | 28 // PlzNavigate: Used to override parameters of the navigation request. |
| 29 struct StreamOverrideParameters { | 29 struct StreamOverrideParameters { |
| 30 public: | 30 public: |
| 31 StreamOverrideParameters(); |
| 32 ~StreamOverrideParameters(); |
| 31 // TODO(clamy): The browser should be made aware on destruction of this struct | 33 // TODO(clamy): The browser should be made aware on destruction of this struct |
| 32 // that it can release its associated stream handle. | 34 // that it can release its associated stream handle. |
| 33 GURL stream_url; | 35 GURL stream_url; |
| 34 ResourceResponseHead response; | 36 ResourceResponseHead response; |
| 37 std::vector<GURL> redirects; |
| 38 std::vector<ResourceResponseInfo> redirect_responses; |
| 35 }; | 39 }; |
| 36 | 40 |
| 37 class CONTENT_EXPORT WebURLLoaderImpl | 41 class CONTENT_EXPORT WebURLLoaderImpl |
| 38 : public NON_EXPORTED_BASE(blink::WebURLLoader) { | 42 : public NON_EXPORTED_BASE(blink::WebURLLoader) { |
| 39 public: | 43 public: |
| 40 | 44 |
| 41 // Takes ownership of |web_task_runner|. | 45 // Takes ownership of |web_task_runner|. |
| 42 WebURLLoaderImpl(ResourceDispatcher* resource_dispatcher, | 46 WebURLLoaderImpl(ResourceDispatcher* resource_dispatcher, |
| 43 mojom::URLLoaderFactory* url_loader_factory); | 47 mojom::URLLoaderFactory* url_loader_factory); |
| 44 ~WebURLLoaderImpl() override; | 48 ~WebURLLoaderImpl() override; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 class Context; | 83 class Context; |
| 80 class RequestPeerImpl; | 84 class RequestPeerImpl; |
| 81 scoped_refptr<Context> context_; | 85 scoped_refptr<Context> context_; |
| 82 | 86 |
| 83 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); | 87 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); |
| 84 }; | 88 }; |
| 85 | 89 |
| 86 } // namespace content | 90 } // namespace content |
| 87 | 91 |
| 88 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 92 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
| OLD | NEW |