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

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, 2 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 FrameLoader* frameLoader() const; 204 FrameLoader* frameLoader() const;
205 205
206 void commitIfReady(); 206 void commitIfReady();
207 void commitData(const char* bytes, size_t length); 207 void commitData(const char* bytes, size_t length);
208 void clearMainResourceHandle(); 208 void clearMainResourceHandle();
209 209
210 bool maybeCreateArchive(); 210 bool maybeCreateArchive();
211 211
212 void finishedLoading(double finishTime); 212 void finishedLoading(double finishTime);
213 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); 213 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&);
214 void redirectReceived(Resource*, 214 bool redirectReceived(Resource*,
215 ResourceRequest&, 215 const ResourceRequest&,
216 const ResourceResponse&) final; 216 const ResourceResponse&) final;
217 void responseReceived(Resource*, 217 void responseReceived(Resource*,
218 const ResourceResponse&, 218 const ResourceResponse&,
219 std::unique_ptr<WebDataConsumerHandle>) final; 219 std::unique_ptr<WebDataConsumerHandle>) final;
220 void dataReceived(Resource*, const char* data, size_t length) final; 220 void dataReceived(Resource*, const char* data, size_t length) final;
221 void processData(const char* data, size_t length); 221 void processData(const char* data, size_t length);
222 void notifyFinished(Resource*) final; 222 void notifyFinished(Resource*) final;
223 String debugName() const override { return "DocumentLoader"; } 223 String debugName() const override { return "DocumentLoader"; }
224 224
225 bool maybeLoadEmpty(); 225 bool maybeLoadEmpty();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // Used to protect against reentrancy into dataReceived(). 280 // Used to protect against reentrancy into dataReceived().
281 bool m_inDataReceived; 281 bool m_inDataReceived;
282 RefPtr<SharedBuffer> m_dataBuffer; 282 RefPtr<SharedBuffer> m_dataBuffer;
283 }; 283 };
284 284
285 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 285 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
286 286
287 } // namespace blink 287 } // namespace blink
288 288
289 #endif // DocumentLoader_h 289 #endif // DocumentLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceLoader.cpp ('k') | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698