Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: content/child/web_url_loader_impl.h

Issue 1693183002: Move multipart resource handling to core/fetch (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-cleanup-preliminary
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 blink::WebData& data) override; 61 blink::WebData& data) override;
62 void loadAsynchronously( 62 void loadAsynchronously(
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 void setLoadingTaskRunner(blink::WebTaskRunner* loading_task_runner) override; 69 void setLoadingTaskRunner(blink::WebTaskRunner* loading_task_runner) override;
70 70
71 // This is a utility function for multipart image resources.
72 static bool ParseMultipartHeadersFromBody(const char* bytes,
73 size_t size,
74 blink::WebURLResponse* response,
75 size_t* end);
76
71 private: 77 private:
72 class Context; 78 class Context;
73 class RequestPeerImpl; 79 class RequestPeerImpl;
74 scoped_refptr<Context> context_; 80 scoped_refptr<Context> context_;
75 81
76 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); 82 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl);
77 }; 83 };
78 84
79 } // namespace content 85 } // namespace content
80 86
81 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ 87 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698