| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 const blink::WebURLRequest& request, | 63 const blink::WebURLRequest& request, |
| 64 blink::WebURLLoaderClient* client) override; | 64 blink::WebURLLoaderClient* client) override; |
| 65 void cancel() override; | 65 void cancel() override; |
| 66 void setDefersLoading(bool value) override; | 66 void setDefersLoading(bool value) override; |
| 67 void didChangePriority(blink::WebURLRequest::Priority new_priority, | 67 void didChangePriority(blink::WebURLRequest::Priority new_priority, |
| 68 int intra_priority_value) override; | 68 int intra_priority_value) override; |
| 69 bool attachThreadedDataReceiver( | 69 bool attachThreadedDataReceiver( |
| 70 blink::WebThreadedDataReceiver* threaded_data_receiver) override; | 70 blink::WebThreadedDataReceiver* threaded_data_receiver) override; |
| 71 void setLoadingTaskRunner(blink::WebTaskRunner* loading_task_runner) override; | 71 void setLoadingTaskRunner(blink::WebTaskRunner* loading_task_runner) override; |
| 72 | 72 |
| 73 // This is a utility function for multipart image resources. |
| 74 static bool ParseMultipartHeadersFromBody(const char* bytes, |
| 75 size_t size, |
| 76 blink::WebURLResponse* response, |
| 77 size_t* end); |
| 78 |
| 73 private: | 79 private: |
| 74 class Context; | 80 class Context; |
| 75 class RequestPeerImpl; | 81 class RequestPeerImpl; |
| 76 scoped_refptr<Context> context_; | 82 scoped_refptr<Context> context_; |
| 77 | 83 |
| 78 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); | 84 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); |
| 79 }; | 85 }; |
| 80 | 86 |
| 81 } // namespace content | 87 } // namespace content |
| 82 | 88 |
| 83 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 89 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
| OLD | NEW |