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

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

Issue 2230173002: Change WebURLLoaderClient::willFollowRedirect() API to return bool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed jochen's point 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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013, Intel Corporation 3 * Copyright (C) 2013, Intel Corporation
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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 String debugName() const override { return "DocumentThreadableLoader"; } 88 String debugName() const override { return "DocumentThreadableLoader"; }
89 89
90 // RawResourceClient 90 // RawResourceClient
91 // 91 //
92 // |this| may be dead after calling these methods. 92 // |this| may be dead after calling these methods.
93 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon g totalBytesToBeSent) override; 93 void dataSent(Resource*, unsigned long long bytesSent, unsigned long lon g totalBytesToBeSent) override;
94 void responseReceived(Resource*, const ResourceResponse&, std::unique_pt r<WebDataConsumerHandle>) override; 94 void responseReceived(Resource*, const ResourceResponse&, std::unique_pt r<WebDataConsumerHandle>) override;
95 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid e; 95 void setSerializedCachedMetadata(Resource*, const char*, size_t) overrid e;
96 void dataReceived(Resource*, const char* data, size_t dataLength) overri de; 96 void dataReceived(Resource*, const char* data, size_t dataLength) overri de;
97 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons e&) override; 97 bool redirectReceived(Resource*, const ResourceRequest&, const ResourceR esponse&) override;
98 void redirectBlocked() override; 98 void redirectBlocked() override;
99 void dataDownloaded(Resource*, int) override; 99 void dataDownloaded(Resource*, int) override;
100 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over ride; 100 void didReceiveResourceTiming(Resource*, const ResourceTimingInfo&) over ride;
101 101
102 // |this| may be dead after calling this method in async mode. 102 // |this| may be dead after calling this method in async mode.
103 void cancelWithError(const ResourceError&); 103 void cancelWithError(const ResourceError&);
104 104
105 // Notify Inspector and log to console about resource response. Use 105 // Notify Inspector and log to console about resource response. Use
106 // this method if response is not going to be finished normally. 106 // this method if response is not going to be finished normally.
107 void reportResponseReceived(unsigned long identifier, const ResourceResp onse&); 107 void reportResponseReceived(unsigned long identifier, const ResourceResp onse&);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // header when following the redirect. 235 // header when following the redirect.
236 bool m_didRedirect; 236 bool m_didRedirect;
237 Referrer m_referrerAfterRedirect; 237 Referrer m_referrerAfterRedirect;
238 238
239 RawResourceClientStateChecker m_checker; 239 RawResourceClientStateChecker m_checker;
240 }; 240 };
241 241
242 } // namespace blink 242 } // namespace blink
243 243
244 #endif // DocumentThreadableLoader_h 244 #endif // DocumentThreadableLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698