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

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

Issue 1571233003: Fix errors caused by unsafe conversions to/from size_t (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved ALLOW_NUMERIC_ARG_TYPES_PROMOTABLE_TO Created 4 years, 11 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 void prepareSubframeArchiveLoadIfNeeded(); 174 void prepareSubframeArchiveLoadIfNeeded();
175 175
176 void willSendRequest(ResourceRequest&, const ResourceResponse&); 176 void willSendRequest(ResourceRequest&, const ResourceResponse&);
177 void finishedLoading(double finishTime); 177 void finishedLoading(double finishTime);
178 void mainReceivedError(const ResourceError&); 178 void mainReceivedError(const ResourceError&);
179 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); 179 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&);
180 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) final; 180 void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) final;
181 void updateRequest(Resource*, const ResourceRequest&) final; 181 void updateRequest(Resource*, const ResourceRequest&) final;
182 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData ConsumerHandle>) final; 182 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebData ConsumerHandle>) final;
183 void dataReceived(Resource*, const char* data, unsigned length) final; 183 void dataReceived(Resource*, const char* data, size_t length) final;
184 void processData(const char* data, unsigned length); 184 void processData(const char* data, size_t length);
185 void notifyFinished(Resource*) final; 185 void notifyFinished(Resource*) final;
186 String debugName() const override { return "DocumentLoader"; } 186 String debugName() const override { return "DocumentLoader"; }
187 187
188 bool maybeLoadEmpty(); 188 bool maybeLoadEmpty();
189 189
190 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&); 190 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&);
191 191
192 bool shouldContinueForResponse() const; 192 bool shouldContinueForResponse() const;
193 193
194 RawPtrWillBeMember<LocalFrame> m_frame; 194 RawPtrWillBeMember<LocalFrame> m_frame;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Used to protect against reentrancy into dataReceived(). 242 // Used to protect against reentrancy into dataReceived().
243 bool m_inDataReceived; 243 bool m_inDataReceived;
244 RefPtr<SharedBuffer> m_dataBuffer; 244 RefPtr<SharedBuffer> m_dataBuffer;
245 }; 245 };
246 246
247 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 247 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
248 248
249 } // namespace blink 249 } // namespace blink
250 250
251 #endif // DocumentLoader_h 251 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698