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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceLoader.h

Issue 2535383003: Collapse images disallowed by the Safe Browsing Subresource Filter. (Closed)
Patch Set: Initial draft. Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 const WebURLError&, 114 const WebURLError&,
115 int64_t encodedDataLength) override; 115 int64_t encodedDataLength) override;
116 116
117 void didFinishLoadingFirstPartInMultipart(); 117 void didFinishLoadingFirstPartInMultipart();
118 void didFail(const ResourceError&); 118 void didFail(const ResourceError&);
119 119
120 private: 120 private:
121 // Assumes ResourceFetcher and Resource are non-null. 121 // Assumes ResourceFetcher and Resource are non-null.
122 ResourceLoader(ResourceFetcher*, Resource*); 122 ResourceLoader(ResourceFetcher*, Resource*);
123 123
124 void cancelForRedirectAccessCheckError(const KURL&); 124 void cancelForRedirectAccessCheckError(const KURL&,
125 ResourceRequestBlockedReason);
125 void requestSynchronously(const ResourceRequest&); 126 void requestSynchronously(const ResourceRequest&);
126 127
127 std::unique_ptr<WebURLLoader> m_loader; 128 std::unique_ptr<WebURLLoader> m_loader;
128 Member<ResourceFetcher> m_fetcher; 129 Member<ResourceFetcher> m_fetcher;
129 Member<Resource> m_resource; 130 Member<Resource> m_resource;
130 bool m_isCacheAwareLoadingActivated; 131 bool m_isCacheAwareLoadingActivated;
131 }; 132 };
132 133
133 } // namespace blink 134 } // namespace blink
134 135
135 #endif 136 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698