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

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

Issue 22982011: Reland "Fix form resubmissions happening silently." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 void willSendRequest(ResourceRequest&, const ResourceResponse&); 190 void willSendRequest(ResourceRequest&, const ResourceResponse&);
191 void finishedLoading(double finishTime); 191 void finishedLoading(double finishTime);
192 void mainReceivedError(const ResourceError&); 192 void mainReceivedError(const ResourceError&);
193 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc eResponse&) OVERRIDE; 193 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc eResponse&) OVERRIDE;
194 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRI DE; 194 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRI DE;
195 virtual void dataReceived(Resource*, const char* data, int length) OVERR IDE; 195 virtual void dataReceived(Resource*, const char* data, int length) OVERR IDE;
196 virtual void notifyFinished(Resource*) OVERRIDE; 196 virtual void notifyFinished(Resource*) OVERRIDE;
197 197
198 bool maybeLoadEmpty(); 198 bool maybeLoadEmpty();
199 199
200 bool isPostOrRedirectAfterPost(const ResourceRequest&, const ResourceRes ponse&); 200 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse& );
201 201
202 bool shouldContinueForResponse() const; 202 bool shouldContinueForResponse() const;
203 203
204 typedef Timer<DocumentLoader> DocumentLoaderTimer; 204 typedef Timer<DocumentLoader> DocumentLoaderTimer;
205 205
206 void handleSubstituteDataLoadSoon(); 206 void handleSubstituteDataLoadSoon();
207 void handleSubstituteDataLoadNow(DocumentLoaderTimer*); 207 void handleSubstituteDataLoadNow(DocumentLoaderTimer*);
208 void startDataLoadTimer(); 208 void startDataLoadTimer();
209 209
210 Frame* m_frame; 210 Frame* m_frame;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 unsigned long m_identifierForLoadWithoutResourceLoader; 255 unsigned long m_identifierForLoadWithoutResourceLoader;
256 256
257 DocumentLoaderTimer m_dataLoadTimer; 257 DocumentLoaderTimer m_dataLoadTimer;
258 258
259 friend class ApplicationCacheHost; // for substitute resource delivery 259 friend class ApplicationCacheHost; // for substitute resource delivery
260 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; 260 OwnPtr<ApplicationCacheHost> m_applicationCacheHost;
261 }; 261 };
262 } 262 }
263 263
264 #endif // DocumentLoader_h 264 #endif // DocumentLoader_h
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceFetcher.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698