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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 mojom::URLLoaderFactory* url_loader_factory); | 46 mojom::URLLoaderFactory* url_loader_factory); |
47 ~WebURLLoaderImpl() override; | 47 ~WebURLLoaderImpl() override; |
48 | 48 |
49 static void PopulateURLResponse(const GURL& url, | 49 static void PopulateURLResponse(const GURL& url, |
50 const ResourceResponseInfo& info, | 50 const ResourceResponseInfo& info, |
51 blink::WebURLResponse* response, | 51 blink::WebURLResponse* response, |
52 bool report_security_info); | 52 bool report_security_info); |
53 static blink::WebURLRequest PopulateURLRequestForRedirect( | 53 static blink::WebURLRequest PopulateURLRequestForRedirect( |
54 const blink::WebURLRequest& request, | 54 const blink::WebURLRequest& request, |
55 const net::RedirectInfo& redirect_info, | 55 const net::RedirectInfo& redirect_info, |
56 blink::WebURLRequest::SkipServiceWorker skip_service_worker); | 56 blink::WebURLRequest::ServiceWorkerMode service_worker_mode); |
57 | 57 |
58 // WebURLLoader methods: | 58 // WebURLLoader methods: |
59 void loadSynchronously(const blink::WebURLRequest& request, | 59 void loadSynchronously(const blink::WebURLRequest& request, |
60 blink::WebURLResponse& response, | 60 blink::WebURLResponse& response, |
61 blink::WebURLError& error, | 61 blink::WebURLError& error, |
62 blink::WebData& data, | 62 blink::WebData& data, |
63 int64_t& encoded_data_length, | 63 int64_t& encoded_data_length, |
64 int64_t& encoded_body_length) override; | 64 int64_t& encoded_body_length) override; |
65 void loadAsynchronously( | 65 void loadAsynchronously( |
66 const blink::WebURLRequest& request, | 66 const blink::WebURLRequest& request, |
67 blink::WebURLLoaderClient* client) override; | 67 blink::WebURLLoaderClient* client) override; |
68 void cancel() override; | 68 void cancel() override; |
69 void setDefersLoading(bool value) override; | 69 void setDefersLoading(bool value) override; |
70 void didChangePriority(blink::WebURLRequest::Priority new_priority, | 70 void didChangePriority(blink::WebURLRequest::Priority new_priority, |
71 int intra_priority_value) override; | 71 int intra_priority_value) override; |
72 void setLoadingTaskRunner( | 72 void setLoadingTaskRunner( |
73 base::SingleThreadTaskRunner* loading_task_runner) override; | 73 base::SingleThreadTaskRunner* loading_task_runner) override; |
74 | 74 |
75 private: | 75 private: |
76 class Context; | 76 class Context; |
77 class RequestPeerImpl; | 77 class RequestPeerImpl; |
78 scoped_refptr<Context> context_; | 78 scoped_refptr<Context> context_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); | 80 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace content | 83 } // namespace content |
84 | 84 |
85 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 85 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
OLD | NEW |