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

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentLoader.h

Issue 1757633005: Don't duplicate ResourceRequests and ResourceLoaderOptions on ResourceLoader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make synchronousPolicy check higher priority in determineRevalidationPolicy 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void commitData(const char* bytes, size_t length); 168 void commitData(const char* bytes, size_t length);
169 ResourceLoader* mainResourceLoader() const; 169 ResourceLoader* mainResourceLoader() const;
170 void clearMainResourceHandle(); 170 void clearMainResourceHandle();
171 171
172 bool maybeCreateArchive(); 172 bool maybeCreateArchive();
173 173
174 void finishedLoading(double finishTime); 174 void finishedLoading(double finishTime);
175 void mainReceivedError(const ResourceError&); 175 void mainReceivedError(const ResourceError&);
176 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); 176 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&);
177 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) final; 177 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) final;
178 void updateRequest(Resource*, const ResourceRequest&) final;
179 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData ConsumerHandle>) final; 178 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData ConsumerHandle>) final;
180 void dataReceived(Resource*, const char* data, size_t length) final; 179 void dataReceived(Resource*, const char* data, size_t length) final;
181 void processData(const char* data, size_t length); 180 void processData(const char* data, size_t length);
182 void notifyFinished(Resource*) final; 181 void notifyFinished(Resource*) final;
183 String debugName() const override { return "DocumentLoader"; } 182 String debugName() const override { return "DocumentLoader"; }
184 183
185 bool maybeLoadEmpty(); 184 bool maybeLoadEmpty();
186 185
187 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&); 186 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&);
188 187
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Used to protect against reentrancy into dataReceived(). 239 // Used to protect against reentrancy into dataReceived().
241 bool m_inDataReceived; 240 bool m_inDataReceived;
242 RefPtr<SharedBuffer> m_dataBuffer; 241 RefPtr<SharedBuffer> m_dataBuffer;
243 }; 242 };
244 243
245 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 244 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
246 245
247 } // namespace blink 246 } // namespace blink
248 247
249 #endif // DocumentLoader_h 248 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698