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

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

Issue 126753002: Update the ResourceRequest in DocumentLoader after the embedder modified it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/fetch/ResourceLoader.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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 bool maybeCreateArchive(); 175 bool maybeCreateArchive();
176 void clearArchiveResources(); 176 void clearArchiveResources();
177 177
178 void prepareSubframeArchiveLoadIfNeeded(); 178 void prepareSubframeArchiveLoadIfNeeded();
179 void addAllArchiveResources(MHTMLArchive*); 179 void addAllArchiveResources(MHTMLArchive*);
180 180
181 void willSendRequest(ResourceRequest&, const ResourceResponse&); 181 void willSendRequest(ResourceRequest&, const ResourceResponse&);
182 void finishedLoading(double finishTime); 182 void finishedLoading(double finishTime);
183 void mainReceivedError(const ResourceError&); 183 void mainReceivedError(const ResourceError&);
184 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc eResponse&) OVERRIDE; 184 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc eResponse&) OVERRIDE;
185 virtual void updateRequest(Resource*, const ResourceRequest&) OVERRIDE;
185 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRI DE; 186 virtual void responseReceived(Resource*, const ResourceResponse&) OVERRI DE;
186 virtual void dataReceived(Resource*, const char* data, int length) OVERR IDE; 187 virtual void dataReceived(Resource*, const char* data, int length) OVERR IDE;
187 virtual void notifyFinished(Resource*) OVERRIDE; 188 virtual void notifyFinished(Resource*) OVERRIDE;
188 189
189 bool maybeLoadEmpty(); 190 bool maybeLoadEmpty();
190 191
191 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse& ); 192 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse& );
192 193
193 bool shouldContinueForResponse() const; 194 bool shouldContinueForResponse() const;
194 195
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 DocumentLoadTiming m_documentLoadTiming; 238 DocumentLoadTiming m_documentLoadTiming;
238 239
239 double m_timeOfLastDataReceived; 240 double m_timeOfLastDataReceived;
240 241
241 friend class ApplicationCacheHost; // for substitute resource delivery 242 friend class ApplicationCacheHost; // for substitute resource delivery
242 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; 243 OwnPtr<ApplicationCacheHost> m_applicationCacheHost;
243 }; 244 };
244 } 245 }
245 246
246 #endif // DocumentLoader_h 247 #endif // DocumentLoader_h
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceLoader.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698