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

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

Issue 2230173002: Change WebURLLoaderClient::willFollowRedirect() API to return bool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 void commitIfReady(); 173 void commitIfReady();
174 void commitData(const char* bytes, size_t length); 174 void commitData(const char* bytes, size_t length);
175 ResourceLoader* mainResourceLoader() const; 175 ResourceLoader* mainResourceLoader() const;
176 void clearMainResourceHandle(); 176 void clearMainResourceHandle();
177 177
178 bool maybeCreateArchive(); 178 bool maybeCreateArchive();
179 179
180 void finishedLoading(double finishTime); 180 void finishedLoading(double finishTime);
181 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); 181 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&);
182 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) final; 182 bool redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) final;
183 void responseReceived(Resource*, const ResourceResponse&, std::unique_ptr<We bDataConsumerHandle>) final; 183 void responseReceived(Resource*, const ResourceResponse&, std::unique_ptr<We bDataConsumerHandle>) final;
184 void dataReceived(Resource*, const char* data, size_t length) final; 184 void dataReceived(Resource*, const char* data, size_t length) final;
185 void processData(const char* data, size_t length); 185 void processData(const char* data, size_t length);
186 void notifyFinished(Resource*) final; 186 void notifyFinished(Resource*) final;
187 String debugName() const override { return "DocumentLoader"; } 187 String debugName() const override { return "DocumentLoader"; }
188 188
189 bool maybeLoadEmpty(); 189 bool maybeLoadEmpty();
190 190
191 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&); 191 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&);
192 192
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // Used to protect against reentrancy into dataReceived(). 244 // Used to protect against reentrancy into dataReceived().
245 bool m_inDataReceived; 245 bool m_inDataReceived;
246 RefPtr<SharedBuffer> m_dataBuffer; 246 RefPtr<SharedBuffer> m_dataBuffer;
247 }; 247 };
248 248
249 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 249 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
250 250
251 } // namespace blink 251 } // namespace blink
252 252
253 #endif // DocumentLoader_h 253 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698