| 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 12 matching lines...) Expand all Loading... |
| 23 struct CONTENT_EXPORT StreamOverrideParameters { | 23 struct CONTENT_EXPORT StreamOverrideParameters { |
| 24 public: | 24 public: |
| 25 StreamOverrideParameters(); | 25 StreamOverrideParameters(); |
| 26 ~StreamOverrideParameters(); | 26 ~StreamOverrideParameters(); |
| 27 // TODO(clamy): The browser should be made aware on destruction of this struct | 27 // TODO(clamy): The browser should be made aware on destruction of this struct |
| 28 // that it can release its associated stream handle. | 28 // that it can release its associated stream handle. |
| 29 GURL stream_url; | 29 GURL stream_url; |
| 30 ResourceResponseHead response; | 30 ResourceResponseHead response; |
| 31 std::vector<GURL> redirects; | 31 std::vector<GURL> redirects; |
| 32 std::vector<ResourceResponseInfo> redirect_responses; | 32 std::vector<ResourceResponseInfo> redirect_responses; |
| 33 std::vector<net::RedirectInfo> redirect_infos; |
| 33 | 34 |
| 34 // The delta between the actual transfer size and the one reported by the | 35 // The delta between the actual transfer size and the one reported by the |
| 35 // AsyncResourceLoader due to not having the ResourceResponse. | 36 // AsyncResourceLoader due to not having the ResourceResponse. |
| 36 int total_transfer_size_delta; | 37 int total_transfer_size_delta; |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 class CONTENT_EXPORT WebURLLoaderImpl | 40 class CONTENT_EXPORT WebURLLoaderImpl |
| 40 : public NON_EXPORTED_BASE(blink::WebURLLoader) { | 41 : public NON_EXPORTED_BASE(blink::WebURLLoader) { |
| 41 public: | 42 public: |
| 42 | 43 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 class Context; | 76 class Context; |
| 76 class RequestPeerImpl; | 77 class RequestPeerImpl; |
| 77 scoped_refptr<Context> context_; | 78 scoped_refptr<Context> context_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); | 80 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace content | 83 } // namespace content |
| 83 | 84 |
| 84 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 85 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
| OLD | NEW |