| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 mojom::URLLoaderFactory* url_loader_factory); | 47 mojom::URLLoaderFactory* url_loader_factory); |
| 48 ~WebURLLoaderImpl() override; | 48 ~WebURLLoaderImpl() override; |
| 49 | 49 |
| 50 static void PopulateURLResponse(const GURL& url, | 50 static void PopulateURLResponse(const GURL& url, |
| 51 const ResourceResponseInfo& info, | 51 const ResourceResponseInfo& info, |
| 52 blink::WebURLResponse* response, | 52 blink::WebURLResponse* response, |
| 53 bool report_security_info); | 53 bool report_security_info); |
| 54 static void PopulateURLRequestForRedirect( | 54 static void PopulateURLRequestForRedirect( |
| 55 const blink::WebURLRequest& request, | 55 const blink::WebURLRequest& request, |
| 56 const net::RedirectInfo& redirect_info, | 56 const net::RedirectInfo& redirect_info, |
| 57 blink::WebReferrerPolicy referrer_policy, | |
| 58 blink::WebURLRequest::SkipServiceWorker skip_service_worker, | 57 blink::WebURLRequest::SkipServiceWorker skip_service_worker, |
| 59 blink::WebURLRequest* new_request); | 58 blink::WebURLRequest* new_request); |
| 60 | 59 |
| 61 // WebURLLoader methods: | 60 // WebURLLoader methods: |
| 62 void loadSynchronously(const blink::WebURLRequest& request, | 61 void loadSynchronously(const blink::WebURLRequest& request, |
| 63 blink::WebURLResponse& response, | 62 blink::WebURLResponse& response, |
| 64 blink::WebURLError& error, | 63 blink::WebURLError& error, |
| 65 blink::WebData& data, | 64 blink::WebData& data, |
| 66 int64_t& encoded_data_length) override; | 65 int64_t& encoded_data_length) override; |
| 67 void loadAsynchronously( | 66 void loadAsynchronously( |
| (...skipping 15 matching lines...) Expand all Loading... |
| 83 class Context; | 82 class Context; |
| 84 class RequestPeerImpl; | 83 class RequestPeerImpl; |
| 85 scoped_refptr<Context> context_; | 84 scoped_refptr<Context> context_; |
| 86 | 85 |
| 87 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); | 86 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 } // namespace content | 89 } // namespace content |
| 91 | 90 |
| 92 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 91 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
| OLD | NEW |