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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::SkipServiceWorker skip_service_worker); |
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) override; | 63 int64_t& encoded_data_length, |
| 64 int64_t& encoded_body_length) override; |
64 void loadAsynchronously( | 65 void loadAsynchronously( |
65 const blink::WebURLRequest& request, | 66 const blink::WebURLRequest& request, |
66 blink::WebURLLoaderClient* client) override; | 67 blink::WebURLLoaderClient* client) override; |
67 void cancel() override; | 68 void cancel() override; |
68 void setDefersLoading(bool value) override; | 69 void setDefersLoading(bool value) override; |
69 void didChangePriority(blink::WebURLRequest::Priority new_priority, | 70 void didChangePriority(blink::WebURLRequest::Priority new_priority, |
70 int intra_priority_value) override; | 71 int intra_priority_value) override; |
71 void setLoadingTaskRunner( | 72 void setLoadingTaskRunner( |
72 base::SingleThreadTaskRunner* loading_task_runner) override; | 73 base::SingleThreadTaskRunner* loading_task_runner) override; |
73 | 74 |
74 private: | 75 private: |
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 |