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

Side by Side Diff: Source/core/loader/ResourceLoader.cpp

Issue 16140020: Delete NetworkingContext and its subclasses. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2010, 2011 Apple Inc. All rights reserved.
3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com) 3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com)
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 ASSERT(m_deferredRequest.isNull()); 152 ASSERT(m_deferredRequest.isNull());
153 153
154 m_documentLoader->applicationCacheHost()->willStartLoadingResource(m_request ); 154 m_documentLoader->applicationCacheHost()->willStartLoadingResource(m_request );
155 155
156 if (m_defersLoading) { 156 if (m_defersLoading) {
157 m_deferredRequest = m_request; 157 m_deferredRequest = m_request;
158 return; 158 return;
159 } 159 }
160 160
161 if (m_state != Terminated) 161 if (m_state != Terminated)
162 m_handle = ResourceHandle::create(m_frame->loader()->networkingContext() , m_request, this, m_defersLoading, m_options.sniffContent == SniffContent, m_op tions.allowCredentials); 162 m_handle = ResourceHandle::create(m_request, this, m_defersLoading, m_op tions.sniffContent == SniffContent, m_options.allowCredentials);
163 } 163 }
164 164
165 void ResourceLoader::setDefersLoading(bool defers) 165 void ResourceLoader::setDefersLoading(bool defers)
166 { 166 {
167 m_defersLoading = defers; 167 m_defersLoading = defers;
168 if (m_handle) 168 if (m_handle)
169 m_handle->setDefersLoading(defers); 169 m_handle->setDefersLoading(defers);
170 if (!defers && !m_deferredRequest.isNull()) { 170 if (!defers && !m_deferredRequest.isNull()) {
171 m_request = m_deferredRequest; 171 m_request = m_deferredRequest;
172 m_deferredRequest = ResourceRequest(); 172 m_deferredRequest = ResourceRequest();
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 info.addMember(m_request, "request"); 428 info.addMember(m_request, "request");
429 info.addMember(m_originalRequest, "originalRequest"); 429 info.addMember(m_originalRequest, "originalRequest");
430 info.addMember(m_deferredRequest, "deferredRequest"); 430 info.addMember(m_deferredRequest, "deferredRequest");
431 info.addMember(m_options, "options"); 431 info.addMember(m_options, "options");
432 info.addMember(m_resource, "resource"); 432 info.addMember(m_resource, "resource");
433 info.addMember(m_documentLoader, "documentLoader"); 433 info.addMember(m_documentLoader, "documentLoader");
434 info.addMember(m_requestCountTracker, "requestCountTracker"); 434 info.addMember(m_requestCountTracker, "requestCountTracker");
435 } 435 }
436 436
437 } 437 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698